Skip to content

Commit cdd33c7

Browse files
committed
fix: #483 be more specific about looking for entities in "Microsoft.*" namespaces
1 parent a99f872 commit cdd33c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/IntelliTect.Coalesce/TypeUsage/DbContextTypeUsage.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public DbContextTypeUsage(ClassViewModel classViewModel)
1919
// as well as any props that aren't in the Microsoft namespace.
2020
// This prevents us from picking up things from Microsoft.AspNetCore.Identity.EntityFrameworkCore
2121
// that don't have keys & other properties that Coalesce can work with.
22-
.Where(p => p.Parent.Equals(classViewModel) || !p.PureType.FullNamespace.StartsWith(nameof(Microsoft)))
22+
.Where(p => p.Parent.Equals(classViewModel) || !p.PureType.FullNamespace.StartsWith(nameof(Microsoft) + "."))
2323

2424
.Where(p => p.Type.IsA(typeof(DbSet<>)))
2525
.Select(p => new EntityTypeUsage(this, p.PureType, p.Name))

0 commit comments

Comments
 (0)