Recently the underlying all use the EFCORE project, but in practice found Func As a condition for the query is a full table scan, now don't want to a wide range of change of the underlying, want to know how to can be flexible, here is my question 2:
The question a, direct conversion? Func Transforming Expression< object; Func Objects?
Question 2, you cannot convert how to parse?
Func Object is parsed into Expression Objects?
CodePudding user response:
You can put the Expression As a source code while Func As the machine code, Compile a good implementation, decompiled is difficult,
And even if you rewrite into Expression , EF can perform does not necessarily, EF can perform only a subset of expressions, such as many lines of code, loops, if judgment, conditional branch, call native functions, is not actually EF all support,
CodePudding user response:
Do not change the underlying, so suggest directly discarded,