Skip to content

Commit

Permalink
merge fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MaceWindu committed Oct 13, 2023
1 parent c866b1b commit 9481e81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/LinqToDB.EntityFrameworkCore/EFCoreMetadataReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public MappingAttribute[] GetAttributes(Type type)
{
foreach (var e in _model.GetEntityTypes())
{
if (GetBaseTypeRecursive(e) == et && e.GetDiscriminatorValue() != null)
if (GetBaseTypeRecursive(e) == et && e.Relational().DiscriminatorValue != null)
{
result.AddRange(GetMappingAttributesRecursive(e));
}
Expand Down Expand Up @@ -146,7 +146,7 @@ List<InheritanceMappingAttribute> ProcessEntityType(IEntityType et)
mappings.Add(new()
{
Type = et.ClrType,
Code = entityType.GetDiscriminatorValue()
Code = entityType.Relational().DiscriminatorValue
});
}

Expand Down

0 comments on commit 9481e81

Please sign in to comment.