From 02cf123c328d2d025b097715ec4fd891119c6ea4 Mon Sep 17 00:00:00 2001 From: zqlovejyc <943620963@qq.com> Date: Mon, 4 Apr 2022 14:56:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E5=B8=832.3.2=E7=89=88=E6=9C=AC?= =?UTF-8?q?=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SQLBuilder.Diagnostics/Properties/AssemblyInfo.cs | 4 ++-- SQLBuilder/Properties/AssemblyInfo.cs | 4 ++-- SQLBuilder/Repositories/MySqlRepository.cs | 2 +- SQLBuilder/Repositories/NpgsqlRepository.cs | 2 +- SQLBuilder/Repositories/SqlRepository.cs | 2 +- SQLBuilder/Repositories/SqliteRepository.cs | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) 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()";