wenxiangchao
4 天以前 2e889843b4c171f2d6ad8e0d53084040703d11f6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
using System;
 
namespace HMI.Core
{
    [AttributeUsage(AttributeTargets.Property)]
    public class ExcelColumnAttribute : Attribute
    {
        public string Name { get; private set; }
        public bool IgnoreExport { get; private set; }
        public bool IgnoreImport { get; private set; }
 
        public ExcelColumnAttribute(string name, bool ignoreExport = false, bool ignoreImport = false)
        {
            this.Name = name;
            this.IgnoreExport = ignoreExport;
            this.IgnoreImport = ignoreImport;
        }
    }
}