Compiled query using list of class objects in C#
- by Sukan
Hello ,
Can somebody help me out in creating compiled queries where input is to be a list of class objects? I have seen examples where Func<DataContext, somematchobject, IQueryable<T>> is created and compiled.
But can I do something like Func<List<T>, matchObject, T>, and compile it?
Basically I want an object(T) meeting certain conditions (as in matchObject) to be returned from a list of objects(List<T>).
Will CompiledQuery.Compile help me in this?
Please help me experts!!