1、創建實體屬性標記
CellAttribute( displayName, Type hander = DisplayName = Hander = DisplayName { ; Type Hander { ; }
2、創建通用處理方法
View Code
3、創建Execl文件映射類
[CellAttribute( Code { ; [CellAttribute( Name { ; [CellAttribute(, Group { ; [CellAttribute( DateTime AddTime { ; }
4、指定Execl文件路徑,通過通用處理方法導出映射實體
filePath = XlsFileHandler<ReadMapper> handler = XlsFileHandler<ReadMapper> List<ReadMapper> readMappers = Assert.AreEqual(readMappers.Count, }