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