v3.0.1
v3.0.1
This commit is contained in:
@@ -15,15 +15,18 @@ namespace CC.Yi.BLL
|
||||
public studentBll(IBaseDal<student> cd,DataContext _Db):base(cd,_Db)
|
||||
{
|
||||
CurrentDal = cd;
|
||||
DbSession = _Db;
|
||||
Db = _Db;
|
||||
}
|
||||
}
|
||||
public partial class propBll : BaseBll<prop>, IpropBll
|
||||
{
|
||||
public propBll(IBaseDal<prop> cd,DataContext _Db):base(cd,_Db)
|
||||
|
||||
public async Task<bool> DelListByUpdateList(List<int> Ids)
|
||||
{
|
||||
CurrentDal = cd;
|
||||
DbSession = _Db;
|
||||
var entitys = await CurrentDal.GetEntities(u => Ids.Contains(u.id)).ToListAsync();
|
||||
foreach (var entity in entitys)
|
||||
{
|
||||
entity.is_delete = (short)ViewModel.Enum.DelFlagEnum.Deleted;
|
||||
}
|
||||
return Db.SaveChanges() > 0;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user