Dynamic expression tree how to
- by Savvas Sopiadis
Hello everybody!
Implemented a generic repository with several Methods. One of those is this:
public IEnumerable<T> Find(Expression<Func<T, bool>> where)
{
return _objectSet.Where(where);
}
Given to be it is easy to call this like this:
Expression<Func<Culture, bool>> whereClause = c…