I have a method that takes a generic TEntity which is overriden. It's signature is as follows:
public virtual Expression<Func<AclProject, bool>> ProjectFilter(params TEntity[] objs)
{
return (p) => objs.Select(o => o.ID).Contains(p.ID);
}
I then filter a query based on this:
from p in db.SomeDbSet where db.AclProjects.Where(ProjectFilter(p)).Any() select p
This results in a 1025 error. (note that it doesn't matter what the body of the ProjectFilter is, the error still occurs.
Any ideas why?
Thanks!