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
{{ message }}
Repository navigation
Perform parameter funcletization for compiled queries #19749
We don't currently evaluate expressions over parameters for compiled queries:
[Fact]publicvoidFuncletizationAndCompiledQueries(){usingvarcontext=CreateContext();varname="foo";varresults1=context.Set<Customer>().Where(c =>c.CompanyName.Length==name.Length).ToList();// WHERE CAST(LEN([c].[CompanyName]) AS int) = @__name_Length_0"varcompiled=EF.CompileQuery((NorthwindContextctx,stringp)=>ctx.Set<Customer>().Where(c =>c.CompanyName.Length==name.Length));varresults2=compiled(context,name).ToList();// WHERE CAST(LEN([c].[CompanyName]) AS int) = CAST(LEN(@__p) AS int)")}
Activity