From 4451ee1c1d559e7333fc21bdc7aab48d98015e51 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Tue, 26 Mar 2024 10:43:47 +0800 Subject: [PATCH] =?UTF-8?q?Update=20=E4=BA=BA=E5=A4=A7=E9=87=91=E4=BB=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Kdbndp/Insertable/KdbndpInserttable.cs | 4 +++ .../SqlSugar/SqlSugarForCore.nuspec | 34 ------------------- 2 files changed, 4 insertions(+), 34 deletions(-) delete mode 100644 Src/Asp.NetCore2/SqlSugar/SqlSugarForCore.nuspec diff --git a/Src/Asp.NetCore2/SqlSugar/Realization/Kdbndp/Insertable/KdbndpInserttable.cs b/Src/Asp.NetCore2/SqlSugar/Realization/Kdbndp/Insertable/KdbndpInserttable.cs index 4fb170717..c3893c492 100644 --- a/Src/Asp.NetCore2/SqlSugar/Realization/Kdbndp/Insertable/KdbndpInserttable.cs +++ b/Src/Asp.NetCore2/SqlSugar/Realization/Kdbndp/Insertable/KdbndpInserttable.cs @@ -16,6 +16,7 @@ namespace SqlSugar string sql = InsertBuilder.ToSqlString().Replace("$PrimaryKey", this.SqlBuilder.GetTranslationColumnName(GetIdentityKeys().FirstOrDefault() ?? "")); RestoreMapping(); sql = GetSql(sql); + AutoRemoveDataCache(); var result = Ado.GetScalar(sql, InsertBuilder.Parameters == null ? null : InsertBuilder.Parameters.ToArray()).ObjToInt(); return result; } @@ -28,6 +29,7 @@ namespace SqlSugar string sql = InsertBuilder.ToSqlString().Replace("$PrimaryKey", this.SqlBuilder.GetTranslationColumnName(GetIdentityKeys().FirstOrDefault()??"")); RestoreMapping(); sql = GetSql(sql); + AutoRemoveDataCache(); var obj = await Ado.GetScalarAsync(sql, InsertBuilder.Parameters == null ? null : InsertBuilder.Parameters.ToArray()); var result = obj.ObjToInt(); return result; @@ -45,6 +47,7 @@ namespace SqlSugar string sql = InsertBuilder.ToSqlString().Replace("$PrimaryKey", this.SqlBuilder.GetTranslationColumnName(GetIdentityKeys().FirstOrDefault()??"")); RestoreMapping(); sql = GetSql(sql); + AutoRemoveDataCache(); var result = Convert.ToInt64(Ado.GetScalar(sql, InsertBuilder.Parameters == null ? null : InsertBuilder.Parameters.ToArray()) ?? "0"); return result; } @@ -55,6 +58,7 @@ namespace SqlSugar string sql = InsertBuilder.ToSqlString().Replace("$PrimaryKey", this.SqlBuilder.GetTranslationColumnName(GetIdentityKeys().FirstOrDefault() ?? "")); RestoreMapping(); sql = GetSql(sql); + AutoRemoveDataCache(); var result = Convert.ToInt64(await Ado.GetScalarAsync(sql, InsertBuilder.Parameters == null ? null : InsertBuilder.Parameters.ToArray()) ?? "0"); return result; } diff --git a/Src/Asp.NetCore2/SqlSugar/SqlSugarForCore.nuspec b/Src/Asp.NetCore2/SqlSugar/SqlSugarForCore.nuspec deleted file mode 100644 index 47f3b8ea7..000000000 --- a/Src/Asp.NetCore2/SqlSugar/SqlSugarForCore.nuspec +++ /dev/null @@ -1,34 +0,0 @@ - - - - SqlSugarCore - 5.1.4.149-preview11 - sunkaixuan - 果糖大数据科技 - http://www.apache.org/licenses/LICENSE-2.0.html - https://github.com/sunkaixuan/SqlSugar - https://secure.gravatar.com/avatar/a82c03402497b2e58fd65038a3699b30 - false - .Net Core3.1 .Net5 .Net6 .Net7 .Net8 安装此版本,好用的ORM框架 ,支持国外主流和国产人大金仓达梦 OceanBase GaussDB QuestDb ClickHouse Oracle MySql SqlServer Sqlite, 版本说明: 5.0.3.5-Max 最低要求.Net Core 3.0+ ,5.0.0-5.0.3.4 最低要求 .Net Core 2.0+ SqlSugar ORM ,High-performance, lightweight - Copyright 2016 - SqlSugar Sql Sugar core Asp.net core orm 达梦 金仓 人大金仓 QuestDb ClickHouse Oracle MySql OceanBase GaussDB SqlServer Sqlite - - - - - - - - - - - - - - - - - - - - \ No newline at end of file