You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this should transform to single query but it does not:
var result= this.context.MainTable
.Include(t => t.DetailTable)
.Select(t => new {
id = t.Id,
values = t.DetailTable.Select(t2 => t2.SomeField)
})
.ToArray();
First query is run to query MainTable and then for each row in MainTable another query is run to get SomeField value from DetailTable.
I am using EF 1.1.2.
I though that I am doing something wrong, so I ask question on SO, but it was suggested that this is a bug.
The text was updated successfully, but these errors were encountered:
I think this should transform to single query but it does not:
First query is run to query MainTable and then for each row in MainTable another query is run to get SomeField value from DetailTable.
I am using EF 1.1.2.
I though that I am doing something wrong, so I ask question on SO, but it was suggested that this is a bug.
The text was updated successfully, but these errors were encountered: