/// <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); } }
public void ClearParams() { helper.ClearParams(); }
/// <summary> /// 清除参数 /// </summary> public void ClearParams() { dbHelper.ClearParams(); }