Skip to content

Commit 9480a4a

Browse files
Merge pull request #598 from johelvisguzman/GH-597
(GH-597) Allowed the primary key conventions helper to get the key from a base class
2 parents 4155bb7 + 0cd7ae9 commit 9480a4a

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)