mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-23 04:23:47 +08:00
Bug BulkCopyUpdate
This commit is contained in:
@@ -41,8 +41,8 @@ namespace SqlSugar
|
||||
public virtual async Task CreateTempAsync<T>(DataTable dt) where T : class, new()
|
||||
{
|
||||
await this.Context.UnionAll(
|
||||
this.Context.Queryable<T>().Select("*").Where(it => false).AS(dt.TableName),
|
||||
this.Context.Queryable<T>().Select("*").Where(it => false).AS(dt.TableName)).Select("top 1 * into #temp").ToListAsync();
|
||||
this.Context.Queryable<T>().Filter(null,true).Select("*").Where(it => false).AS(dt.TableName),
|
||||
this.Context.Queryable<T>().Filter(null, true).Select("*").Where(it => false).AS(dt.TableName)).Select("top 1 * into #temp").ToListAsync();
|
||||
dt.TableName = "#temp";
|
||||
}
|
||||
}
|
||||
|
@@ -41,8 +41,8 @@ namespace SqlSugar
|
||||
public virtual async Task CreateTempAsync<T>(DataTable dt) where T : class, new()
|
||||
{
|
||||
await this.Context.UnionAll(
|
||||
this.Context.Queryable<T>().Select("*").Where(it => false).AS(dt.TableName),
|
||||
this.Context.Queryable<T>().Select("*").Where(it => false).AS(dt.TableName)).Select("top 1 * into #temp").ToListAsync();
|
||||
this.Context.Queryable<T>().Filter(null,true).Select("*").Where(it => false).AS(dt.TableName),
|
||||
this.Context.Queryable<T>().Filter(null, true).Select("*").Where(it => false).AS(dt.TableName)).Select("top 1 * into #temp").ToListAsync();
|
||||
dt.TableName = "#temp";
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user