This question is locked. New answers and comments are not allowed.
Hi, Telerik.
I'm using FetchStrategy for getting Collection navigation field values by one query. Eeverything work with code:
But if I add to anonymous type field of Books FetchStrategy doesn't work. For Example added b.Name
What must I do for working FetchStrategy fine in last example?
Thank you.
I'm using FetchStrategy for getting Collection navigation field values by one query. Eeverything work with code:
class Program{ static void Main(string[] args) { var fetchStrategy = new FetchStrategy(); fetchStrategy.LoadWith<Book>(b => b.Cities); using (var ctx = new FluentModel()) { ctx.FetchStrategy = fetchStrategy; var books = ctx.Books.Select(b => new { b.Cities }).ToList(); } }}But if I add to anonymous type field of Books FetchStrategy doesn't work. For Example added b.Name
... using (var ctx = new FluentModel()) { ctx.FetchStrategy = fetchStrategy; var books = ctx.Books.Select(b => new {b.Name, b.Cities}).ToList(); }...What must I do for working FetchStrategy fine in last example?
Thank you.