排名
1
文章数
15030
总访问量
216.3万
粉丝数
30
评论数
120
excel(泛型和datatable)帮助类,含添加和读取表头批注

usingSystem;
usingSystem.Collections.Generic;
usingSystem.Linq;
usingSystem.Text;
usingSystem.Threading.Tasks;
usingNPOI.HSSF.UserModel;
usingNPOI.HSSF.Util;
usingNPOI.XSSF.Util;
usingNPOI.XSSF.UserModel;
usingNPOI.SS.UserModel;
usinglog4net;
usingSystem.IO;
usingSystem.Reflect...
访问数据库的泛型封装类

///<summary>
///新增
///</summary>
///<typeparamname="T">实体类</typeparam>
///<paramname="t">对象</param>
///<paramname="flag">返回主键还是都影响行数false受影响行数true主键值</param>
///<returns></r...
导出SQL脚本小程序

usingSystem;
usingSystem.Collections.Generic;
usingSystem.Linq;
usingSystem.Text;
usingSystem.Threading.Tasks;
usingSystem.Data.SqlClient;
usingSystem.IO;
namespaceExportSQL
{
classTsest
{
staticvoidMain(string[]args)
{
stringconnstr=@"DataSource=.;UserID=sa;Password=1234...
封装调用api接口的通用方法(抱含存调用接口日志)

protectedstaticreadonlylog4net.ILog_log=log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
///<summary>
///get请求
///</summary>
///<typeparamname="T"></typeparam>
///<paramname="uri"></param&...