i am trying to write a compiled query fro selecting to data .
here is my query
public static Func<MercuryOneWebEntities,List<customer_pending_items>> FilteredResults =
CompiledQuery.Compile<MercuryOneWebEntities, List<customer_pending_items>>(
(obj) =>obj.customer_pending_items.ToList());
i am trying to retrieve to list of data from table.
it will showing the error like
the MercuryOneWebEntities is cannot to be used as a argument 'TArg0' in the generic type or method CompiledQuery.Compile
their is no implicit conversion from MercuryOneWebEntities to System.Data.Linq.DataContext
MercuryOneWebEntities is my datacontext
Go to the complete details ...