public void Delete <T>(T t) where T : class { dbContext.Remove(t); }
public void Delete(Expression <Func <T, bool> > whereLambda) { var entitys = dbContext.Set <T>().Where(whereLambda).ToList(); entitys.ForEach(m => dbContext.Remove(m)); }