📜  dapper c# 插入范围 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:45.938000             🧑  作者: Mango

代码示例1
SqlTransaction trans = connection.BeginTransaction();

connection.Execute(@"
insert PROCESS_LOGS(Id, st_Time, ed_Time, td_Time)
values(@Id, @st_Time, @ed_Time, @td_Time)", processList, transaction: trans);

trans.Commit();