I tried to write compiled query as given below:
public static Func<MyDBEntities, string, List<Client>> getCustomers =
CompiledQuery.Compile(
(MyDBEntities ctx, string strCustCode) => from objCustomer in ctx.Clients
select objCustomer);
and getting following error message:
Creates a new delegate that represent the complied LINQ to Entity query
Error:
There is no implicit reference conversion from MyDBEntities to System.Data.Objects.ObjectsContext
I'm using DbContext in this project.
Didn't understand what was missed.