Created
January 29, 2016 20:16
-
-
Save StevenTCramer/2d524f368595e101cc07 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
if (allEntitiesAttribute != null) | |
{ | |
var dbContext = new MyDbContext(); | |
return ((IObjectContextAdapter)dbContext) | |
.ObjectContext | |
.MetadataWorkspace | |
.GetItems<EntityType>(DataSpace.OSpace) | |
.Select(e => Type.GetType(e.FullName)) | |
.Except(allEntitiesAttribute.Except) | |
.Select(entityType => new[] { specimenContext.Resolve(entityType) }) | |
.ToArray(); | |
} | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment