Browse Source

Synchronization code

pull/31/head
sunkaixuan 2 years ago
parent
commit
d790054e36
  1. 18
      Src/Asp.NetCore2/SqlSugar/Abstract/FastestProvider/Private.cs

18
Src/Asp.NetCore2/SqlSugar/Abstract/FastestProvider/Private.cs

@ -169,19 +169,15 @@ namespace SqlSugar
} }
private DataTable GetCopyWriteDataTable(DataTable dt) private DataTable GetCopyWriteDataTable(DataTable dt)
{ {
DataTable tempDataTable = ReflectionInoCore<DataTable>.GetInstance().GetOrCreate("BulkCopyAsync_dt" + dt.TableName, DataTable tempDataTable = null;
() => if (AsName == null)
{ {
if (AsName == null) tempDataTable=queryable.Where(it => false).Select("*").ToDataTable();
{
return queryable.Where(it => false).Select("*").ToDataTable();
}
else
{
return queryable.AS(AsName).Where(it => false).Select("*").ToDataTable();
}
} }
).Copy(); else
{
tempDataTable=queryable.AS(AsName).Where(it => false).Select("*").ToDataTable();
};
List<string> uInt64TypeName = new List<string>(); List<string> uInt64TypeName = new List<string>();
foreach (DataColumn item in tempDataTable.Columns) foreach (DataColumn item in tempDataTable.Columns)
{ {

Loading…
Cancel
Save