mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
Update questdb
This commit is contained in:
parent
ce3d941c28
commit
145753bdb1
@ -62,6 +62,22 @@ namespace SqlSugar
|
||||
{
|
||||
return ExecuteCommandAsync(sql).GetAwaiter().GetResult();
|
||||
}
|
||||
|
||||
public async Task<string> InsertAsync<T>(T insertData) where T:class,new()
|
||||
{
|
||||
if (db.CurrentConnectionConfig.MoreSettings == null)
|
||||
db.CurrentConnectionConfig.MoreSettings = new ConnMoreSettings();
|
||||
db.CurrentConnectionConfig.MoreSettings.DisableNvarchar = true;
|
||||
var sql= db.Insertable(insertData).ToSqlString();
|
||||
return await ExecuteCommandAsync(sql);
|
||||
}
|
||||
|
||||
public string Insert<T>(T insertData) where T : class, new()
|
||||
{
|
||||
return InsertAsync(insertData).GetAwaiter().GetResult();
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 批量快速插入异步
|
||||
/// </summary>
|
||||
|
Loading…
Reference in New Issue
Block a user