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)
{
DataTable tempDataTable = ReflectionInoCore<DataTable>.GetInstance().GetOrCreate("BulkCopyAsync_dt" + dt.TableName,
() =>
DataTable tempDataTable = null;
if (AsName == null)
{
if (AsName == null)
{
return queryable.Where(it => false).Select("*").ToDataTable();
}
else
{
return queryable.AS(AsName).Where(it => false).Select("*").ToDataTable();
}
tempDataTable=queryable.Where(it => false).Select("*").ToDataTable();
}
).Copy();
else
{
tempDataTable=queryable.AS(AsName).Where(it => false).Select("*").ToDataTable();
};
List<string> uInt64TypeName = new List<string>();
foreach (DataColumn item in tempDataTable.Columns)
{

Loading…
Cancel
Save