ImportDictAttribute.cs 434 B

1234567891011121314151617181920
  1. namespace Admin.NET.Core;
  2. /// <summary>
  3. /// 属性字典配置
  4. /// </summary>
  5. [AttributeUsage(AttributeTargets.Property)]
  6. public class ImportDictAttribute : Attribute
  7. {
  8. /// <summary>
  9. /// 字典Code
  10. /// </summary>
  11. public string TypeCode { get; set; }
  12. ///// <summary>
  13. ///// 目标对象类型
  14. ///// </summary>
  15. //public Type TargetType { get; set; }
  16. public string TargetPropName { get; set; }
  17. }