Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1305,7 +1305,7 @@ private static Expression GetPropertyExpression(Expression source, string proper
Expression propertyValue = source;
foreach (string propertyName in propertyNameParts)
{
propertyValue = Expression.Property(propertyValue, propertyName);
propertyValue = Expression.Property(propertyValue, propertyValue.Type.GetProperty(propertyName));

// Consider a scenario like:
// Sales?$apply=compute(Amount mul Product/TaxRate as Tax)/compute(Amount add Tax as Total,Amount div 10 as Discount)/compute(Total sub Discount as SalePrice)
Expand Down