Skip to content

Commit

Permalink
发布2.3.2版本;
Browse files Browse the repository at this point in the history
  • Loading branch information
zqlovejyc committed Apr 4, 2022
1 parent fca79b1 commit 02cf123
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions SQLBuilder.Diagnostics/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
4 changes: 2 additions & 2 deletions SQLBuilder/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
2 changes: 1 addition & 1 deletion SQLBuilder/Repositories/MySqlRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public override long Insert<T>(T entity, bool identity, string identitySql = nul
public override async Task<long> InsertAsync<T>(T entity, bool identity, string identitySql = null) where T : class
{
if (!identity)
return Insert(entity);
return await InsertAsync(entity);

identitySql ??= "SELECT LAST_INSERT_ID()";

Expand Down
2 changes: 1 addition & 1 deletion SQLBuilder/Repositories/NpgsqlRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public override long Insert<T>(T entity, bool identity, string identitySql = nul
public override async Task<long> InsertAsync<T>(T entity, bool identity, string identitySql = null) where T : class
{
if (!identity)
return Insert(entity);
return await InsertAsync(entity);

identitySql ??= "RETURNING $PRIMARYKEY";

Expand Down
2 changes: 1 addition & 1 deletion SQLBuilder/Repositories/SqlRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public override long Insert<T>(T entity, bool identity, string identitySql = nul
public override async Task<long> InsertAsync<T>(T entity, bool identity, string identitySql = null) where T : class
{
if (!identity)
return Insert(entity);
return await InsertAsync(entity);

identitySql ??= "SELECT SCOPE_IDENTITY()";

Expand Down
2 changes: 1 addition & 1 deletion SQLBuilder/Repositories/SqliteRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public override long Insert<T>(T entity, bool identity, string identitySql = nul
public override async Task<long> InsertAsync<T>(T entity, bool identity, string identitySql = null) where T : class
{
if (!identity)
return Insert(entity);
return await InsertAsync(entity);

identitySql ??= "SELECT LAST_INSERT_ROWID()";

Expand Down

0 comments on commit 02cf123

Please sign in to comment.