Skip to content

Commit 5ca06ed

Browse files
committed
Include sorting by non-public members
1 parent ed4ed33 commit 5ca06ed

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Build/CommonAssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
1515
//
1616
// You can specify all the values or you can default the Revision and Build Numbers
1717
// by using the '*' as shown below:
18-
[assembly: AssemblyVersion("2.4.4")]
19-
[assembly: AssemblyFileVersion("2.4.4")]
18+
[assembly: AssemblyVersion("2.4.5")]
19+
[assembly: AssemblyFileVersion("2.4.5")]
2020
//[assembly: AssemblyInformationalVersion("2.0-alpha6")]

Griddly.Mvc/Results/QueryableResult.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ static IOrderedQueryable<T> ApplyOrder(IQueryable<T> source, string property, st
186186
foreach (string prop in props)
187187
{
188188
// use reflection (not ComponentModel) to mirror LINQ
189-
PropertyInfo pi = type.GetProperty(prop);
189+
PropertyInfo pi = type.GetProperty(prop, BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance);
190190
expr = Expression.Property(expr, pi);
191191
type = pi.PropertyType;
192192
}

0 commit comments

Comments
 (0)