Skip to content

Commit dfd65f0

Browse files
author
jaguzman
committed
Changed ExpressionHelper.GetExpression to get an expression not just from where it is defined
1 parent 6a8fda1 commit dfd65f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DotNetToolkit.Repository/Utility/ExpressionHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public static Expression GetExpression<T>([NotNull] string path)
5858

5959
Expression body = param;
6060

61-
foreach (var pi in parts.Select(prop => type.GetTypeInfo().GetDeclaredProperty(prop)))
61+
foreach (var pi in parts.Select(prop => type.GetProperty(prop)))
6262
{
6363
body = Expression.Property(body, pi);
6464
type = pi.PropertyType;

0 commit comments

Comments
 (0)