摘要: NET Core 3.1 已经用了很长一段时间,其实在 2022 年的年底微软已经不提供支持了,后面的一个 LTS 版本 .NET 6 也会在 2024 年 11 月终止支持,所以直接升级到 .NET 8 是最好的选择。 微软官方推出了升级工具:Upgrade Assistant ,链接地址如下: 阅读全文
posted @ 2024-01-30 16:14 Ly博客 阅读(372) 评论(0) 推荐(0) 编辑
摘要: 1 /// <summary> 2 /// DataTable 转换为List 集合 3 /// </summary> 4 /// <typeparam name="TResult">类型</typeparam> 5 /// <param name="dt">DataTable</param> 6 阅读全文
posted @ 2021-08-18 16:59 Ly博客 阅读(1812) 评论(0) 推荐(0) 编辑
摘要: 1 public static string[] GetValue(Sheet_Excel model) 2 { 3 MessageModel result = new MessageModel(); 4 string[] arrys = new string[] { }; 5 try 6 { 7 阅读全文
posted @ 2021-06-03 12:10 Ly博客 阅读(321) 评论(0) 推荐(0) 编辑
摘要: 1 2 public readonly IWebHostEnvironment _webHostEnvironment; 3 4 public FileController(IWebHostEnvironment webHostEnvironment) 5 { 6 7 _webHostEnviron 阅读全文
posted @ 2021-06-01 16:42 Ly博客 阅读(42) 评论(0) 推荐(0) 编辑
摘要: public class ImagesHelper { /// <summary> /// 缩略图1:生成等比例高清缩略图,图片比较大 /// </summary> /// <param name="phyPath">原图片的路径</param> /// <param name="width">缩略 阅读全文
posted @ 2021-06-01 16:39 Ly博客 阅读(63) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// .net core 下添加引用 ServiceStack.Redis /// Redis缓存操作类 /// </summary> public class RedisHelper { /// <summary> /// 判断某个数据是否已经被缓存 /// </su 阅读全文
posted @ 2021-06-01 16:33 Ly博客 阅读(142) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 不可逆加密MD5 /// MD5全称是message-digest algorithm 5,简单的说就是单向的加密,也就是说无法根据密文推导出明文。 /// MD5主要用途: /// 1、对一段信息生成信息摘要,该摘要对该信息具有唯一性,可以作为数字签名 /// 阅读全文
posted @ 2021-06-01 16:28 Ly博客 阅读(200) 评论(0) 推荐(0) 编辑
摘要: public class DBHelper { //System.Data.SqlClient //Dapper //Newtonsoft.Json /// <summary> /// 查询List集合 /// </summary> /// <typeparam name="T"></typepar 阅读全文
posted @ 2021-06-01 16:27 Ly博客 阅读(205) 评论(0) 推荐(0) 编辑
摘要: public static DataSet ListToDataSet<T>(List<T> list) { if (list.Count == 0) return new DataSet(); var properties = list[0].GetType().GetProperties(); 阅读全文
posted @ 2021-05-21 18:06 Ly博客 阅读(208) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 分页显示 /// </summary> /// <returns></returns> public object getShopping(string shopName,int addresName=0,int addresHome=0,int pageInde 阅读全文
posted @ 2018-11-22 19:32 Ly博客 阅读(74) 评论(0) 推荐(0) 编辑