懒得勤快 hace 5 años
padre
commit
ee35e61139
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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; }
     }
 }