Skip to content
This repository was archived by the owner on Feb 1, 2025. It is now read-only.

Commit 9481e81

Browse files
committed
merge fix
1 parent c866b1b commit 9481e81

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Source/LinqToDB.EntityFrameworkCore/EFCoreMetadataReader.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public MappingAttribute[] GetAttributes(Type type)
109109
{
110110
foreach (var e in _model.GetEntityTypes())
111111
{
112-
if (GetBaseTypeRecursive(e) == et && e.GetDiscriminatorValue() != null)
112+
if (GetBaseTypeRecursive(e) == et && e.Relational().DiscriminatorValue != null)
113113
{
114114
result.AddRange(GetMappingAttributesRecursive(e));
115115
}
@@ -146,7 +146,7 @@ List<InheritanceMappingAttribute> ProcessEntityType(IEntityType et)
146146
mappings.Add(new()
147147
{
148148
Type = et.ClrType,
149-
Code = entityType.GetDiscriminatorValue()
149+
Code = entityType.Relational().DiscriminatorValue
150150
});
151151
}
152152

0 commit comments

Comments
 (0)