mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 17:37:58 +08:00
Update 达梦
This commit is contained in:
parent
2af3515fae
commit
a051641dca
@ -17,7 +17,11 @@ namespace SqlSugar
|
||||
};
|
||||
public async Task<int> ExecuteBulkCopyAsync(DataTable dt)
|
||||
{
|
||||
return await _Execute(dt);
|
||||
}
|
||||
|
||||
private async Task<int> _Execute(DataTable dt)
|
||||
{
|
||||
DmBulkCopy bulkCopy = GetBulkCopyInstance();
|
||||
bulkCopy.DestinationTableName = dt.TableName;
|
||||
try
|
||||
@ -33,6 +37,7 @@ namespace SqlSugar
|
||||
CloseDb();
|
||||
return dt.Rows.Count;
|
||||
}
|
||||
|
||||
public DmBulkCopy GetBulkCopyInstance()
|
||||
{
|
||||
DmBulkCopy copy;
|
||||
|
Loading…
Reference in New Issue
Block a user