浏览代码

😎1、升级nuget包版本 2、代码格式调整

zuohuaijun 1 年之前
父节点
当前提交
65bc16dfae

+ 1 - 1
Admin.NET/Admin.NET.Core/Admin.NET.Core.csproj

@@ -27,7 +27,7 @@
     <PackageReference Include="Magicodes.IE.Pdf" Version="2.7.5.1" />
     <PackageReference Include="Magicodes.IE.Word" Version="2.7.5.1" />
     <PackageReference Include="MailKit" Version="4.6.0" />
-    <PackageReference Include="NewLife.Redis" Version="5.6.2024.508" />
+    <PackageReference Include="NewLife.Redis" Version="5.7.2024.602" />
     <PackageReference Include="Novell.Directory.Ldap.NETStandard" Version="3.6.0" />
     <PackageReference Include="QRCoder" Version="1.5.1" />
     <PackageReference Include="RabbitMQ.Client" Version="6.8.1" />

+ 1 - 1
Admin.NET/Admin.NET.Core/Attribute/IgnoreTableAttribute.cs

@@ -7,7 +7,7 @@
 namespace Admin.NET.Core;
 
 /// <summary>
-/// 忽略表结构初始化特性,标记在实体中忽略表结构初始化
+/// 忽略表结构初始化特性(标记在实体)
 /// </summary>
 [SuppressSniffer]
 [AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = true)]

+ 2 - 2
Admin.NET/Admin.NET.Core/Attribute/IgnoreUpdateSeedAttribute.cs

@@ -7,10 +7,10 @@
 namespace Admin.NET.Core;
 
 /// <summary>
-/// 忽略更新种子特性,标记在种子类中忽略更新
+/// 忽略更新种子特性(标记在种子类)
 /// </summary>
 [SuppressSniffer]
 [AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = true)]
 public class IgnoreUpdateSeedAttribute : Attribute
 {
-}
+}

+ 2 - 2
Admin.NET/Admin.NET.Core/Attribute/IgnoreUpdateSeedColumnAttribute.cs

@@ -7,10 +7,10 @@
 namespace Admin.NET.Core;
 
 /// <summary>
-/// 忽略更新种子列特性,标记在实体属性中忽略更新
+/// 忽略更新种子列特性(标记在实体属性)
 /// </summary>
 [SuppressSniffer]
 [AttributeUsage(AttributeTargets.Property, AllowMultiple = true, Inherited = true)]
 public class IgnoreUpdateSeedColumnAttribute : Attribute
 {
-}
+}

+ 1 - 7
Admin.NET/Admin.NET.Core/SqlSugar/SqlSugarSetup.cs

@@ -4,12 +4,6 @@
 //
 // 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任!
 
-// 此源代码遵循位于源代码树根目录中的 LICENSE 文件的许可证
-
-// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动
-
-// 任何基于本项目二次开发而产生的一切法律纠纷和责任,均与作者无关
-
 namespace Admin.NET.Core;
 
 public static class SqlSugarSetup
@@ -361,7 +355,7 @@ public static class SqlSugarSetup
                     // 按主键进行批量增加和更新
                     var storage = dbProvider.StorageableByObject(seedData.ToList()).ToStorage();
                     storage.AsInsertable.ExecuteCommand();
-                    if (seedType.GetCustomAttribute<IgnoreUpdateSeedAttribute>() == null)//有忽略更新种子特性时不进行更新
+                    if (seedType.GetCustomAttribute<IgnoreUpdateSeedAttribute>() == null) // 有忽略更新种子特性时不更新
                         storage.AsUpdateable.IgnoreColumns(entityInfo.Columns.Where(c => c.PropertyInfo.GetCustomAttribute<IgnoreUpdateSeedColumnAttribute>() != null).Select(c => c.PropertyName).ToArray()).ExecuteCommand();
                 }
                 else

+ 1 - 1
Admin.NET/Plugins/Admin.NET.Plugin.ReZero/Admin.NET.Plugin.ReZero.csproj

@@ -24,7 +24,7 @@
   </ItemGroup>
 
   <ItemGroup>
-    <PackageReference Include="Rezero.Api" Version="1.5.2" />
+    <PackageReference Include="Rezero.Api" Version="1.5.6" />
   </ItemGroup>  
 
   <ItemGroup>