From 12e606635c42ea20f4b7c2bdda5204237a4b4c96 Mon Sep 17 00:00:00 2001
From: alielie <alielie@git.com>
Date: 星期一, 02 三月 2026 16:14:49 +0800
Subject: [PATCH] 优化
---
HMI.Core/Annotation/ExcelColumn.cs | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/HMI.Core/Annotation/ExcelColumn.cs b/HMI.Core/Annotation/ExcelColumn.cs
index c6ac1c8..29ae81d 100644
--- a/HMI.Core/Annotation/ExcelColumn.cs
+++ b/HMI.Core/Annotation/ExcelColumn.cs
@@ -6,10 +6,14 @@
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)
+ public ExcelColumnAttribute(string name, bool ignoreExport = false, bool ignoreImport = false)
{
this.Name = name;
+ this.IgnoreExport = ignoreExport;
+ this.IgnoreImport = ignoreImport;
}
}
}
--
Gitblit v1.9.1