- 增加 IInsert.ToDataTable 方法,为 BulkCopy 操作提供数据,该文件处理了(表名、字段名、类型)映射和忽略列;

This commit is contained in:
28810
2019-12-20 21:53:44 +08:00
parent ab1d0a2cb5
commit c268970c71
4 changed files with 173 additions and 0 deletions

View File

@ -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();