随笔分类 -  C#

摘要:<?xml version="1.0"?> <configuration> <configSections> <sectionGroup name="system.data.dataset.serialization" type="System.Data.SerializationSettingsS 阅读全文
posted @ 2021-01-22 14:36 Coder_小菜 阅读(351) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// 导出多个控件数据到excel中 /// </summary> /// <param name="FileName">文件名</param> /// <param name="tables">控件列表</param> /// <returns></returns> public static string ControlExportToXlsxNoOpen(str 阅读全文
posted @ 2019-12-05 10:40 Coder_小菜 阅读(1256) 评论(0) 推荐(0) 编辑
摘要:PS:代码来源于网络,原本为固定类型互转,测试后发现此方式比反射及利用json快很多,修改调整为泛型方法,仅作记录。 有时我们仅有为数不多的类需要进行转换,不想使用第三方的map库,可使用此方法。 阅读全文
posted @ 2019-10-28 15:24 Coder_小菜 阅读(388) 评论(0) 推荐(0) 编辑
摘要:PS: 部分代码来源于网络,调整改造成datatable转实体,此方式转换比反射速度快很,如果不作类型转换会更快, 仅作备忘记录; 阅读全文
posted @ 2019-10-28 15:19 Coder_小菜 阅读(447) 评论(0) 推荐(0) 编辑
摘要:例如数据库字段类型为 decimal ,实体属性类型为 int ; 在执行json序列化时会异常, 解决方法: 可新建类继承自实体, 使用new 覆盖基类属性, 序列化时使用新建的类 ; 阅读全文
posted @ 2019-10-16 14:14 Coder_小菜 阅读(1649) 评论(0) 推荐(0) 编辑
摘要:C# 中的几种配置文件 阅读全文
posted @ 2018-11-05 14:52 Coder_小菜 阅读(2043) 评论(0) 推荐(0) 编辑
摘要:C#中使用jwt身份验证 阅读全文
posted @ 2018-08-31 16:58 Coder_小菜 阅读(1388) 评论(0) 推荐(0) 编辑
摘要:数组分组、多线程 阅读全文
posted @ 2018-06-13 10:52 Coder_小菜 阅读(313) 评论(0) 推荐(0) 编辑
摘要:wcf返回统一格式的json 阅读全文
posted @ 2018-05-03 15:27 Coder_小菜 阅读(378) 评论(0) 推荐(0) 编辑
摘要:C# 部分类使用规则 阅读全文
posted @ 2018-04-03 17:32 Coder_小菜 阅读(163) 评论(0) 推荐(0) 编辑
摘要:查询条件in的参数化 阅读全文
posted @ 2017-11-22 17:33 Coder_小菜 阅读(2027) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2017-09-12 16:27 Coder_小菜 阅读(7) 评论(0) 推荐(0) 编辑
摘要:拆分出连续的时间段 阅读全文
posted @ 2017-09-02 12:58 Coder_小菜 阅读(1276) 评论(0) 推荐(0) 编辑
摘要:System.Threading.Timer定时器 阅读全文
posted @ 2017-08-24 17:04 Coder_小菜 阅读(251) 评论(0) 推荐(0) 编辑
摘要:超时时间已到 阅读全文
posted @ 2017-08-23 09:31 Coder_小菜 阅读(1391) 评论(0) 推荐(0) 编辑
摘要:使用linq将xml转换成实体列表 阅读全文
posted @ 2017-07-13 10:05 Coder_小菜 阅读(689) 评论(0) 推荐(0) 编辑
摘要:sqlite中变量的替代方式 阅读全文
posted @ 2017-07-06 16:55 Coder_小菜 阅读(3152) 评论(0) 推荐(0) 编辑
摘要:sqlite数据写入到sqlserver 阅读全文
posted @ 2017-06-26 16:20 Coder_小菜 阅读(1348) 评论(0) 推荐(0) 编辑
摘要:利用Action委托向实体赋值 阅读全文
posted @ 2017-06-01 17:03 Coder_小菜 阅读(270) 评论(0) 推荐(0) 编辑
摘要:方法返回元组还是匿名类型? 阅读全文
posted @ 2017-05-31 13:53 Coder_小菜 阅读(371) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示