Exemple #1
0
 /// <summary>
 /// 批量插入,mysql不支持批量插入
 /// </summary>
 /// <typeparam name="TItem"></typeparam>
 /// <param name="helper"></param>
 /// <param name="details"></param>
 /// <param name="keepIdentity"></param>
 public override void BatchInsert <TItem>(CoreHelper.DBHelper helper, List <TItem> details, bool keepIdentity = false)
 {
     foreach (var item in details)
     {
         helper.ClearParams();
         InsertObject(item, helper);
     }
 }
Exemple #2
0
 public void ClearParams()
 {
     helper.ClearParams();
 }
Exemple #3
0
 /// <summary>
 /// 清除参数
 /// </summary>
 public void ClearParams()
 {
     dbHelper.ClearParams();
 }