|
|
@@ -59,6 +59,12 @@ namespace Business.EntityFrameworkCore.SqlRepositories
|
|
|
return _dbContext.SaveChanges();
|
|
|
}
|
|
|
|
|
|
+ public int Delete(List<T> entitylist)
|
|
|
+ {
|
|
|
+ _dbContext.Set<T>().RemoveRange(entitylist);
|
|
|
+ return _dbContext.SaveChanges();
|
|
|
+ }
|
|
|
+
|
|
|
public bool IsExist(Expression<Func<T, bool>> whereLambda)
|
|
|
{
|
|
|
return _dbContext.Set<T>().Any(whereLambda);
|