懒得勤快 5 years ago
parent
commit
0dcfeabe44
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/Masuit.MyBlogs.Core/Models/Entity/Advertisement.cs

+ 3 - 0
src/Masuit.MyBlogs.Core/Models/Entity/Advertisement.cs

@@ -1,4 +1,5 @@
 using Masuit.MyBlogs.Core.Models.Enum;
 using Masuit.MyBlogs.Core.Models.Enum;
+using Masuit.Tools.Core.AspNetCore;
 using System;
 using System;
 using System.ComponentModel.DataAnnotations;
 using System.ComponentModel.DataAnnotations;
 using System.ComponentModel.DataAnnotations.Schema;
 using System.ComponentModel.DataAnnotations.Schema;
@@ -46,6 +47,7 @@ namespace Masuit.MyBlogs.Core.Models.Entity
         /// <summary>
         /// <summary>
         /// 创建时间
         /// 创建时间
         /// </summary>
         /// </summary>
+        [UpdateIgnore]
         public DateTime CreateTime { get; set; }
         public DateTime CreateTime { get; set; }
 
 
         /// <summary>
         /// <summary>
@@ -72,6 +74,7 @@ namespace Masuit.MyBlogs.Core.Models.Entity
         /// <summary>
         /// <summary>
         /// 访问次数
         /// 访问次数
         /// </summary>
         /// </summary>
+        [UpdateIgnore]
         public int ViewCount { get; set; }
         public int ViewCount { get; set; }
 
 
         public string CategoryIds { get; set; }
         public string CategoryIds { get; set; }