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
[Test]
public void ComputeIncludeDecompileNotFail()
{
using (var db = new EfTestDbContext())
{
db.EfParents.Where(p => ComputedSample()).Include(p => p.Children).Decompile().Load();
}
}
[Computed]
private static bool ComputedSample() { return true; }
What happens here? Include returns IQueryable with expression like value(ObjectQuery<...>).Include("Children"). Call of function ComputedSample() is hidden in constant expression and ignored by DelegateDecompiler. => EF fails to execute query.
Что тут происходит? Вызов Includeвозвращает IQueryable с выражением вроде value(ObjectQuery<...>).Include("Children"). Здесь вызов функции ComputedSample() скрыт в константном выражении - а потому игнорируется библиотекой DelegateDecompiler. Как следствие - EF не может выполнить запрос.
The text was updated successfully, but these errors were encountered:
Look at this test:
What happens here?
Include
returnsIQueryable
with expression likevalue(ObjectQuery<...>).Include("Children")
. Call of functionComputedSample()
is hidden in constant expression and ignored by DelegateDecompiler. => EF fails to execute query.Что тут происходит? Вызов
Include
возвращаетIQueryable
с выражением вродеvalue(ObjectQuery<...>).Include("Children")
. Здесь вызов функцииComputedSample()
скрыт в константном выражении - а потому игнорируется библиотекой DelegateDecompiler. Как следствие - EF не может выполнить запрос.The text was updated successfully, but these errors were encountered: