UpdateIgnoreAttribute.cs 333 B

123456789101112
  1. using System;
  2. namespace Masuit.Tools.Core.AspNetCore
  3. {
  4. /// <summary>
  5. /// 更新时忽略的字段,检测到这个attribute时AddOrUpdate将忽略改字段
  6. /// </summary>
  7. [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)]
  8. public sealed class UpdateIgnoreAttribute : Attribute
  9. {
  10. }
  11. }