Skip to content

Commit

Permalink
Merge branch 'rel/1.0.0' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
prafullbhosale committed Jan 20, 2017
2 parents eef645c + 45ef3eb commit c034ab3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,6 @@ private bool IsModelPropertyExists(ITypeSymbol dbContext, string modelTypeFullNa
{
var namedType = pSymbol.Type as INamedTypeSymbol; //When can this go wrong?
if (namedType != null && namedType.IsGenericType && !namedType.IsUnboundGenericType &&
namedType.ContainingAssembly.Name == "Microsoft.EntityFrameworkCore" &&
namedType.ContainingNamespace.ToDisplayString() == "Microsoft.EntityFrameworkCore" &&
namedType.Name == "DbSet")
{
// Can we check for equality of typeSymbol itself?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,9 @@ public async Task<ContextProcessingResult> GetModelMetadata(string dbContextFull
dbContextError = string.Format(MessageStrings.DbContextTypeNotFound, dbContextFullTypeName);
}
}
dbContextType = reflectedTypesProvider.GetReflectedType(dbContextFullTypeName);
dbContextType = reflectedTypesProvider.GetReflectedType(
modelType: dbContextFullTypeName,
lookInDependencies: true);

if (dbContextType == null)
{
Expand Down

0 comments on commit c034ab3

Please sign in to comment.