brunobritodev / AspNetCore.IQueryable.Extensions

LINQ extensions to help build IQueryAble Expressions
MIT License
159 stars 29 forks source link

Sorting by Navigation Properties? How? #15

Open tekk opened 2 years ago

tekk commented 2 years ago

I'm unable to sort by Navigation Properties, i.e. I have a sort query "Animal.Category.Name" And I'm unable to sort by it, because it crashes in PrimitiveExtensions on PropertyInfo GetProperty<TEntity>(string name). GetProperty only "sees" the properties from the base type. Could you help me please?