mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-30 04:45:54 +08:00
Update BulkCopy
This commit is contained in:
parent
da996ce5e0
commit
2a3c584e9f
@ -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…
Reference in New Issue
Block a user