using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HH.WMS.Entitys { [AttributeUsage(AttributeTargets.Property | AttributeTargets.Class, AllowMultiple = true)] public sealed class NameAttribute : Attribute { private readonly string _name; [NameAttribute("OpType")] public string OpType { get; set; } [NameAttribute("Name")] public string Name { get { return _name; } } public NameAttribute(string name) { _name = name; } } [AttributeUsage(AttributeTargets.Property | AttributeTargets.Class, AllowMultiple = true)] public sealed class ColumnAttribute : Attribute { private readonly string _column; public string Column { get { return _column; } } public ColumnAttribute(string column) { _column = column; } } [AttributeUsage(AttributeTargets.Property | AttributeTargets.Class, AllowMultiple = true)] public sealed class TableAttribute : Attribute { private readonly string _table; public string Table { get { return _table; } } public TableAttribute(string table) { _table = table; } } }