mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-07 06:07:59 +08:00
Update IntoTable
This commit is contained in:
parent
a9f1a6883d
commit
eb64a8913d
@ -678,7 +678,7 @@ ParameterT parameter)
|
|||||||
|
|
||||||
public Task<int> IntoTableAsync<TableEntityType>(CancellationToken cancellationToken = default)
|
public Task<int> IntoTableAsync<TableEntityType>(CancellationToken cancellationToken = default)
|
||||||
{
|
{
|
||||||
return IntoTableAsync(typeof(TableEntityType));
|
return IntoTableAsync(typeof(TableEntityType), cancellationToken);
|
||||||
}
|
}
|
||||||
public Task<int> IntoTableAsync<TableEntityType>(string TableName, CancellationToken cancellationToken = default)
|
public Task<int> IntoTableAsync<TableEntityType>(string TableName, CancellationToken cancellationToken = default)
|
||||||
{
|
{
|
||||||
@ -688,10 +688,11 @@ ParameterT parameter)
|
|||||||
{
|
{
|
||||||
var entityInfo = this.Context.EntityMaintenance.GetEntityInfo(TableEntityType);
|
var entityInfo = this.Context.EntityMaintenance.GetEntityInfo(TableEntityType);
|
||||||
var name = this.SqlBuilder.GetTranslationTableName(entityInfo.DbTableName);
|
var name = this.SqlBuilder.GetTranslationTableName(entityInfo.DbTableName);
|
||||||
return IntoTableAsync(TableEntityType, name);
|
return IntoTableAsync(TableEntityType, name, cancellationToken);
|
||||||
}
|
}
|
||||||
public async Task<int> IntoTableAsync(Type TableEntityType, string TableName, CancellationToken cancellationToken = default)
|
public async Task<int> IntoTableAsync(Type TableEntityType, string TableName, CancellationToken cancellationToken = default)
|
||||||
{
|
{
|
||||||
|
this.Context.Ado.CancellationToken= cancellationToken;
|
||||||
KeyValuePair<string, List<SugarParameter>> sqlInfo;
|
KeyValuePair<string, List<SugarParameter>> sqlInfo;
|
||||||
string sql;
|
string sql;
|
||||||
OutIntoTableSql(TableName, out sqlInfo, out sql,TableEntityType);
|
OutIntoTableSql(TableName, out sqlInfo, out sql,TableEntityType);
|
||||||
|
Loading…
Reference in New Issue
Block a user