2022年3月7日
摘要: /// <summary> /// 根据字段名称获取字段值 /// </summary> /// <param name="fieldName"></param> /// <param name="obj"></param> /// <returns></returns> public static 阅读全文
posted @ 2022-03-07 13:37 程铭 阅读(328) 评论(0) 推荐(0) 编辑
  2021年4月20日
摘要: Where(x => attributeValueList.All(s => x.ProdAttributeStr.Contains(s))) 阅读全文
posted @ 2021-04-20 10:47 程铭 阅读(126) 评论(0) 推荐(0) 编辑
  2021年4月19日
摘要: using System; using System.Drawing; using System.IO; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace 图片压缩 { public class 阅读全文
posted @ 2021-04-19 16:22 程铭 阅读(1839) 评论(0) 推荐(0) 编辑
  2021年1月7日
摘要: NetCore3.0 EF修改 在做修改操作的时候,有一些特殊的查询条件 建议将查询放置在修改数据之前, 因为数据从数据库中读出来的时候,对数据进行操作,修改赋值 并未进行保存的操作。再次查询的时候,数据库中的数据值已被修改,造成了脏读数据 阅读全文
posted @ 2021-01-07 10:39 程铭 阅读(407) 评论(0) 推荐(0) 编辑
  2021年1月4日
摘要: 尝试查询条件后直接使用 .AsEnumerable() 然后再将复杂的查询条件进行处理 _db.phone.Where(x =>!x.IsDelete).AsEnumerable().Where(x => !x.IsDelete).ToList(); 参考文档 https://www.booksta 阅读全文
posted @ 2021-01-04 16:05 程铭 阅读(183) 评论(0) 推荐(1) 编辑
  2020年12月19日
摘要: 支付宝内置浏览器 调用拍照接口 默认拍照的命名规则是 image.jpg 后台对应不可使用原有图片的名称 阅读全文
posted @ 2020-12-19 08:28 程铭 阅读(1010) 评论(0) 推荐(0) 编辑
  2020年12月4日
摘要: using System;using System.Collections.Generic;using System.Drawing;using System.Drawing.Imaging;using System.IO;using System.Text; namespace { public 阅读全文
posted @ 2020-12-04 16:23 程铭 阅读(189) 评论(0) 推荐(0) 编辑
  2020年11月16日
摘要: public static bool Do(List<GoodsSkuInfoDetail> goodsSkuInfos, List<List<KeyValue>> param) { if (param == null) { return false; } List<List<KeyValue>> 阅读全文
posted @ 2020-11-16 16:23 程铭 阅读(107) 评论(0) 推荐(0) 编辑
  2020年9月19日
摘要: .NetCore 程序自带无GBK编码格式 解决方法 在startup类中加上Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);即可 阅读全文
posted @ 2020-09-19 10:11 程铭 阅读(609) 评论(0) 推荐(0) 编辑
  2020年8月1日
摘要: s 阅读全文
posted @ 2020-08-01 17:33 程铭 阅读(794) 评论(0) 推荐(0) 编辑