Skip to content

Commit 0cd7ae9

Browse files
(GH-597) Allowed the primary key conventions helper to get the key from a base class
1 parent 4155bb7 commit 0cd7ae9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DotNetToolkit.Repository/Configuration/Conventions/Internal/PrimaryKeyConventionHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public static PropertyInfo[] GetPrimaryKeyPropertyInfos([NotNull] IRepositoryCon
3636
{
3737
foreach (var propertyName in GetDefaultPrimaryKeyNameChecks(entityType))
3838
{
39-
var propertyInfo = entityType.GetTypeInfo().GetDeclaredProperty(propertyName);
39+
var propertyInfo = entityType.GetProperty(propertyName);
4040

4141
if (propertyInfo != null && conventions.IsColumnMapped(propertyInfo))
4242
{

0 commit comments

Comments
 (0)