Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
/// <summary> /// 批量新增 /// </summary> /// <param name="list"></param> /// <param name="ps">每批次数量,默认500</param> /// <returns>返回总影响行数</returns> public int BatchInsert <TModel>(IEnumerable <TModel> list, int ps = 500) where TModel : class { return(Connection.BatchInsert(list, ps, _tran, commandTimeout: _dbConfig.CommandTimeout)); }