zhao
2021-07-19 8347f2fbddbd25369359dcb2da1233ac48a19fdc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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;
        }
    }
}