This question is locked. New answers and comments are not allowed.
I tried to order link table with fetch strategy and got exception:
Telerik.OpenAccess.FetchOptimization.FetchStrategy fetchStrategy = new Telerik.OpenAccess.FetchOptimization.FetchStrategy();
fetchStrategy.LoadWith<Project>(p => p.Matrices.OrderBy(x => x.Position));
dbContext.FetchStrategy = fetchStrategy;
exception:
Invalid FetchStrategy path expression, must be property/field access on persistent types or Select() on persistent collections.
Parameter name: expression
Actual value was p.Matrices.OrderBy(x => x.Position).
please advice
Thanks
Telerik.OpenAccess.FetchOptimization.FetchStrategy fetchStrategy = new Telerik.OpenAccess.FetchOptimization.FetchStrategy();
fetchStrategy.LoadWith<Project>(p => p.Matrices.OrderBy(x => x.Position));
dbContext.FetchStrategy = fetchStrategy;
exception:
Invalid FetchStrategy path expression, must be property/field access on persistent types or Select() on persistent collections.
Parameter name: expression
Actual value was p.Matrices.OrderBy(x => x.Position).
please advice
Thanks