public virtual void Delete(Expression <Func <T, bool> > where) { var objects = LogicalDbSet.Where <T>(where.Compile()).AsEnumerable(); foreach (T obj in objects) { LogicalDbSet.Remove(obj); } }
public virtual void Delete(T entity) { LogicalDbSet.Remove(entity); }