1添加包
Dapper
Z.Dapper.Plus
2.代码实现
using (IDbConnection conn = new SqlConnection("")) { conn.BulkInsert<Child>(new List<Child>() { new Child(), new Child() }); }