摘要: 1. 自定义attribute需要继承Attribute基类 /// <summary> /// Datareader反射使用 标记 /// 标记 属性在Datareader 中的字段名 以便反射赋值 /// </summary> [AttributeUsage(AttributeTargets.P 阅读全文
posted @ 2020-01-08 14:03 Barrior 阅读(359) 评论(0) 推荐(0)
摘要: 1. 新建excel表 /**新建excel*/ Workbook newBook1 = new Workbook(); newBook1.CreateEmptySheets(1); Worksheet newSheet1 = newBook1.Worksheets[0]; 2. 设置样式 /**设 阅读全文
posted @ 2020-01-08 11:13 Barrior 阅读(1001) 评论(1) 推荐(0)