mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-24 07:22:57 +08:00
Update questdb
This commit is contained in:
parent
ce3d941c28
commit
145753bdb1
@ -62,6 +62,22 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
return ExecuteCommandAsync(sql).GetAwaiter().GetResult();
|
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>
|
||||||
/// 批量快速插入异步
|
/// 批量快速插入异步
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user