wenxiangchao
2026-11-02 fe2aa4880d5c9fd88088ad0ed81ebaca05629f5f
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;
        }
    }
}