Пример #1
0
        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);
            }
        }
Пример #2
0
 public virtual void Delete(T entity)
 {
     LogicalDbSet.Remove(entity);
 }