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