懒得勤快 5 năm trước cách đây
mục cha
commit
ee35e61139
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      src/Masuit.MyBlogs.Core/Models/Entity/BaseEntity.cs

+ 2 - 1
src/Masuit.MyBlogs.Core/Models/Entity/BaseEntity.cs

@@ -1,5 +1,6 @@
 using Masuit.LuceneEFCore.SearchEngine;
 using Masuit.MyBlogs.Core.Models.Enum;
+using Masuit.Tools.Core.AspNetCore;
 using System.ComponentModel;
 
 namespace Masuit.MyBlogs.Core.Models.Entity
@@ -9,7 +10,7 @@ namespace Masuit.MyBlogs.Core.Models.Entity
     /// </summary>
     public class BaseEntity : LuceneIndexableBaseEntity
     {
-        [DefaultValue(Status.Default), LuceneIndex]
+        [DefaultValue(Status.Default), LuceneIndex, UpdateIgnore]
         public Status Status { get; set; }
     }
 }