mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-15 14:04:44 +08:00
Add BulkUpdate(datatable+3)
This commit is contained in:
parent
949e9caa99
commit
b651e44ce5
@ -104,6 +104,11 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
return BulkUpdateAsync(tableName,dataTable, whereColumns, updateColumns).ConfigureAwait(true).GetAwaiter().GetResult();
|
return BulkUpdateAsync(tableName,dataTable, whereColumns, updateColumns).ConfigureAwait(true).GetAwaiter().GetResult();
|
||||||
}
|
}
|
||||||
|
public int BulkUpdate(DataTable dataTable, string[] whereColumns, string[] updateColumns)
|
||||||
|
{
|
||||||
|
Check.ExceptionEasy(this.AsName.IsNullOrEmpty(), "need .AS(tablaeName) ", "需要 .AS(tablaeName) 设置表名");
|
||||||
|
return BulkUpdateAsync(this.AsName, dataTable, whereColumns, updateColumns).ConfigureAwait(true).GetAwaiter().GetResult();
|
||||||
|
}
|
||||||
public async Task<int> BulkUpdateAsync(string tableName, DataTable dataTable, string[] whereColumns, string[] updateColumns)
|
public async Task<int> BulkUpdateAsync(string tableName, DataTable dataTable, string[] whereColumns, string[] updateColumns)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -24,6 +24,7 @@ namespace SqlSugar
|
|||||||
int BulkUpdate(List<T> datas, string[] whereColumns, string[] updateColumns);
|
int BulkUpdate(List<T> datas, string[] whereColumns, string[] updateColumns);
|
||||||
Task<int> BulkUpdateAsync(List<T> datas, string[] whereColumns, string[] updateColumns);
|
Task<int> BulkUpdateAsync(List<T> datas, string[] whereColumns, string[] updateColumns);
|
||||||
int BulkUpdate(string tableName,DataTable dataTable, string[] whereColumns, string[] updateColumns);
|
int BulkUpdate(string tableName,DataTable dataTable, string[] whereColumns, string[] updateColumns);
|
||||||
|
int BulkUpdate(DataTable dataTable, string[] whereColumns, string[] updateColumns);
|
||||||
Task<int> BulkUpdateAsync(string tableName, DataTable dataTable, string[] whereColumns, string[] updateColumns);
|
Task<int> BulkUpdateAsync(string tableName, DataTable dataTable, string[] whereColumns, string[] updateColumns);
|
||||||
SplitFastest<T> SplitTable();
|
SplitFastest<T> SplitTable();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user