mirror of
https://github.com/zoriya/EntityFrameworkCore.Projectables.git
synced 2026-08-15 18:44:57 +00:00
Don't throw on private and protected properties
This commit is contained in:
@@ -89,7 +89,7 @@ namespace EntityFrameworkCore.Projectables.Extensions
|
||||
|
||||
public static PropertyInfo GetOverridingProperty(this Type derivedType, PropertyInfo propertyInfo)
|
||||
{
|
||||
var accessor = propertyInfo.GetAccessors()[0];
|
||||
var accessor = propertyInfo.GetAccessors(true)[0];
|
||||
|
||||
if (!derivedType.CanHaveOverridingMethod(accessor))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user