无实体插入

字典插入(支持多库)

//可以是 Dictionary 或者 List<Dictionary >
var dc= new Dictionary<stringobject>();
            dc.Add("name""1");
            dc.Add("CreateTime", DateTime.Now);
db.Insertable(dc).AS("student").ExecuteCommand();



匿名对象插入(支持多库)

db.InsertableByDynamic(new   { name="",price=1 })
                .AS("OrderInfo")
                .ExecuteCommand();


BulkCopy

db.Fastest<System.Data.DataTable>().AS("order").BulkCopy(dataTable);
//具体用法 要看文档  https://www.donet5.com/Home/Doc?typeId=2404


文档:SqlSugar5.0