|
@ -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) |
|
|
{ |
|
|
{ |
|
|
return queryable.Where(it => false).Select("*").ToDataTable(); |
|
|
tempDataTable=queryable.Where(it => false).Select("*").ToDataTable(); |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
return queryable.AS(AsName).Where(it => false).Select("*").ToDataTable(); |
|
|
tempDataTable=queryable.AS(AsName).Where(it => false).Select("*").ToDataTable(); |
|
|
} |
|
|
}; |
|
|
} |
|
|
|
|
|
).Copy(); |
|
|
|
|
|
List<string> uInt64TypeName = new List<string>(); |
|
|
List<string> uInt64TypeName = new List<string>(); |
|
|
foreach (DataColumn item in tempDataTable.Columns) |
|
|
foreach (DataColumn item in tempDataTable.Columns) |
|
|
{ |
|
|
{ |
|
|