无实体删除

字典删除(支持多库)

//根据字典集合删除 
List<Dictionary<string,object>> list= new List<Dictionary<string,object>>;
list.Add(字典);
db.Deleteable<object>().AS("OrderInfo").WhereColumns(list).ExecuteCommand();


拼SQL删除 (不支持多库)

如果存在一些特殊语法不能做到多库兼容

db.Deleteable<object>().AS("OrderInfo").Where("id=@id",new { id=1}).ExecuteCommand();
db.Deleteable<object>().AS("OrderInfo").Where("id in (@id) ",new {id=new int[]{1,2,3}}).ExecuteCommand();//批量


关闭
文档:SqlSugar5.0