mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 12:28:15 +08:00
- 增加 IInsert.ToDataTable 方法,为 BulkCopy 操作提供数据,该文件处理了(表名、字段名、类型)映射和忽略列;
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Data.Common;
|
||||
using System.Linq.Expressions;
|
||||
using System.Threading.Tasks;
|
||||
@ -115,6 +116,15 @@ namespace FreeSql
|
||||
/// <returns></returns>
|
||||
List<T1> ExecuteInserted();
|
||||
|
||||
/// <summary>
|
||||
/// 返回 DataTable 以便做 BulkCopy 数据做准备<para></para>
|
||||
/// 此方法会处理:<para></para>
|
||||
/// 类型、表名、字段名映射<para></para>
|
||||
/// IgnoreColumns、InsertColumns
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
DataTable ToDataTable();
|
||||
|
||||
#if net40
|
||||
#else
|
||||
Task<int> ExecuteAffrowsAsync();
|
||||
|
Reference in New Issue
Block a user