예제 #1
0
 /// <summary>
 /// 批量添加实体
 /// </summary>
 /// <param name="dt">需要添加的DataTable</param>
 /// <param name="tableName">表名称</param>
 /// <returns>添加成功</returns>
 public void BulkInsert(DataTable dt, string tableName)
 {
     CurrentRepository.BulkInsert(dt, tableName);
 }
예제 #2
0
 /// <summary>
 /// 批量添加实体
 /// </summary>
 /// <param name="list">需要添加的实体</param>
 /// <param name="tableName">表名称</param>
 /// <returns>添加成功</returns>
 public void BulkInsert(IEnumerable <T> list, string tableName)
 {
     CurrentRepository.BulkInsert(list, tableName);
 }