AutoMapperIgnoreAttribute.cs 394 B

123456789101112131415
  1. using System;
  2. namespace VCommon.VAutoMapper
  3. {
  4. [AttributeUsage(AttributeTargets.Property)]
  5. public class AutoMapperIgnoreAttribute : Attribute
  6. {
  7. public AutoMapperIgnoreDirection Direction { get; }
  8. public AutoMapperIgnoreAttribute(AutoMapperIgnoreDirection direction = AutoMapperIgnoreDirection.Both)
  9. {
  10. Direction = direction;
  11. }
  12. }
  13. }