单个删除:
using RoadFlow.Mapper;
using (var db = new DataContext())
{
db.Remove(appLibrary);
return db.SaveChanges();
}
appLibrary为对应的表的实体。
批量删除:
using RoadFlow.Mapper;
using (var db = new DataContext())
{
db.RemoveRange(appLibrarys);
return db.SaveChanges();
}
appLibrarys 为 List<Model.AppLibrary> 表对应的实体列表
联系QQ:493501010电话:13608325512(微信同号)邮箱:493501010@qq.com
Copyright 2014 - 2023 重庆天知软件技术有限公司 版权所有
|