c# - Chaining a compiled query's invocation -
suppose have compiled query hits db , select.
func<mycontext, int, iqueryable<myresult>> myquery = compiledquery.compile<mycontext, int, iqueryable<employee>>((context, empid) => (ctx.employees.where(e => e.id == empid));
and
myquery.invoke(ctx, parama).orderby(x => x.somecolumn).take(10).tolist();
will orderby done in-memory (i.e query context contains myquery) or invoke
chain 'myquery' orderby , tolist() order , take done in db. believe latter. right?
Comments
Post a Comment