diff --git a/SQLBuilder.Diagnostics/Properties/AssemblyInfo.cs b/SQLBuilder.Diagnostics/Properties/AssemblyInfo.cs index 15d36bc..6098112 100644 --- a/SQLBuilder.Diagnostics/Properties/AssemblyInfo.cs +++ b/SQLBuilder.Diagnostics/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ //可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值 //通过使用 "*",如下所示: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("2.3.1.0")] -[assembly: AssemblyFileVersion("2.3.1.0")] +[assembly: AssemblyVersion("2.3.2.0")] +[assembly: AssemblyFileVersion("2.3.2.0")] diff --git a/SQLBuilder/Properties/AssemblyInfo.cs b/SQLBuilder/Properties/AssemblyInfo.cs index 044061c..344bc60 100644 --- a/SQLBuilder/Properties/AssemblyInfo.cs +++ b/SQLBuilder/Properties/AssemblyInfo.cs @@ -31,5 +31,5 @@ // 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号 //通过使用 "*",如下所示: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("2.3.1.0")] -[assembly: AssemblyFileVersion("2.3.1.0")] +[assembly: AssemblyVersion("2.3.2.0")] +[assembly: AssemblyFileVersion("2.3.2.0")] diff --git a/SQLBuilder/Repositories/MySqlRepository.cs b/SQLBuilder/Repositories/MySqlRepository.cs index d2cc343..7ed6003 100644 --- a/SQLBuilder/Repositories/MySqlRepository.cs +++ b/SQLBuilder/Repositories/MySqlRepository.cs @@ -146,7 +146,7 @@ public override long Insert(T entity, bool identity, string identitySql = nul public override async Task InsertAsync(T entity, bool identity, string identitySql = null) where T : class { if (!identity) - return Insert(entity); + return await InsertAsync(entity); identitySql ??= "SELECT LAST_INSERT_ID()"; diff --git a/SQLBuilder/Repositories/NpgsqlRepository.cs b/SQLBuilder/Repositories/NpgsqlRepository.cs index 93d905c..1f7da0e 100644 --- a/SQLBuilder/Repositories/NpgsqlRepository.cs +++ b/SQLBuilder/Repositories/NpgsqlRepository.cs @@ -146,7 +146,7 @@ public override long Insert(T entity, bool identity, string identitySql = nul public override async Task InsertAsync(T entity, bool identity, string identitySql = null) where T : class { if (!identity) - return Insert(entity); + return await InsertAsync(entity); identitySql ??= "RETURNING $PRIMARYKEY"; diff --git a/SQLBuilder/Repositories/SqlRepository.cs b/SQLBuilder/Repositories/SqlRepository.cs index 4b40d86..cd14bf5 100644 --- a/SQLBuilder/Repositories/SqlRepository.cs +++ b/SQLBuilder/Repositories/SqlRepository.cs @@ -160,7 +160,7 @@ public override long Insert(T entity, bool identity, string identitySql = nul public override async Task InsertAsync(T entity, bool identity, string identitySql = null) where T : class { if (!identity) - return Insert(entity); + return await InsertAsync(entity); identitySql ??= "SELECT SCOPE_IDENTITY()"; diff --git a/SQLBuilder/Repositories/SqliteRepository.cs b/SQLBuilder/Repositories/SqliteRepository.cs index f7d930f..3b37dab 100644 --- a/SQLBuilder/Repositories/SqliteRepository.cs +++ b/SQLBuilder/Repositories/SqliteRepository.cs @@ -146,7 +146,7 @@ public override long Insert(T entity, bool identity, string identitySql = nul public override async Task InsertAsync(T entity, bool identity, string identitySql = null) where T : class { if (!identity) - return Insert(entity); + return await InsertAsync(entity); identitySql ??= "SELECT LAST_INSERT_ROWID()";