Skip to content

Commit

Permalink
fix: #483 be more specific about looking for entities in "Microsoft.*…
Browse files Browse the repository at this point in the history
…" namespaces
  • Loading branch information
ascott18 committed Oct 23, 2024
1 parent a99f872 commit cdd33c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/IntelliTect.Coalesce/TypeUsage/DbContextTypeUsage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public DbContextTypeUsage(ClassViewModel classViewModel)
// as well as any props that aren't in the Microsoft namespace.
// This prevents us from picking up things from Microsoft.AspNetCore.Identity.EntityFrameworkCore
// that don't have keys & other properties that Coalesce can work with.
.Where(p => p.Parent.Equals(classViewModel) || !p.PureType.FullNamespace.StartsWith(nameof(Microsoft)))
.Where(p => p.Parent.Equals(classViewModel) || !p.PureType.FullNamespace.StartsWith(nameof(Microsoft) + "."))

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

0 comments on commit cdd33c7

Please sign in to comment.