随笔分类 -  工具类

摘要:public class MappingProfile{ private static MapperConfiguration _config = new MapperConfiguration(cfg => { cfg.CreateMap<PredictionParams, PredictionP 阅读全文

posted @ 2023-03-16 09:38 gfbppy 阅读(28) 评论(0) 推荐(0)

摘要:/// <summary> /// 获取分页数据(使用临时表):该方法在处理分页查询的时候使用了临时表技术,可以实现查询效率和页码大小无关,也就是说查询首页和查询尾页效率是相同的。 /// 主要针对大数量下的大页码(尾页)的查询;但是小页码查询效率会有所降低。建议页码比较多的情况下应用此方法 /// 阅读全文

posted @ 2020-10-06 20:00 gfbppy

摘要:public class ReadSQLXml { public static Dictionary<string, XmlNode> XMLDic = new Dictionary<string, XmlNode>(); /// <summary> /// 初始化SQLMAP /// </summ 阅读全文

posted @ 2020-10-05 17:22 gfbppy

摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data.Common;using System.Data.SqlClient;using System.Da 阅读全文

posted @ 2020-09-26 16:07 gfbppy

摘要:public class OfficeHelper { private static bool ReadExcelToDataTable(ISheet sheet, ref string strMsg, out DataTable data) { bool bRet = true; //定义要返回的 阅读全文

posted @ 2020-07-22 14:36 gfbppy

摘要:public class FileHelper { /// <summary> /// 保存为不带Bom的文件 /// </summary> /// <param name="TxtStr"></param> /// <param name="tempDir">格式:a/b.htm,相对根目录</p 阅读全文

posted @ 2020-07-22 13:53 gfbppy

摘要:/// <summary> /// des 加解密帮助类 /// </summary> public static class DESHelper { private static string desKey = "iuguguiy";//加解密私钥 private static string fl 阅读全文

posted @ 2020-07-22 13:50 gfbppy

摘要:public iflow_result iFlowPost(V_Flow flow, string account) { string paramsJsonStr = JsonConvert.SerializeObject(flow); string sysid = _settings.iFlow_ 阅读全文

posted @ 2020-07-22 13:45 gfbppy

摘要:/// <summary> /// 单表插入 /// </summary> /// <param name="dt"></param> public static void BatchInsertBySqlBulkCopy(DataTable dt) { try { using (SqlBulkCo 阅读全文

posted @ 2019-10-16 17:26 gfbppy

摘要://测试方法 public static DataTable Test() { string savePath = System.AppDomain.CurrentDomain.BaseDirectory; string path="";path=savePath+"/manager/wenjian 阅读全文

posted @ 2019-01-06 18:19 gfbppy

摘要:/// <summary> /// 下载服务器本地路径文件 /// </summary> /// <param name="filePath">相对路径</param> public void WriteFile(string filePath) { try { string _pre_path = 阅读全文

posted @ 2019-01-06 18:04 gfbppy

导航