![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C#
文章平均质量分 62
行者僧
这个作者很懒,什么都没留下…
展开
-
.Net 多线程
.Net多线程异步编程原创 2022-07-12 17:24:12 · 665 阅读 · 0 评论 -
.Net core 依赖注入
.net core 的依赖注入原创 2022-07-01 10:54:41 · 706 阅读 · 0 评论 -
c# 监听端口 解析http请求
console控制台程序监听本地服务器端口,解析http请求using BankProcess;using Newtonsoft.Json;using System;using System.Configuration;using System.IO;using System.Net;using System.Threading;namespace ConsoleApplication3{ class Program { private static s原创 2020-06-18 23:46:04 · 3736 阅读 · 0 评论 -
EF Core The instance of entity type cannot be tracked
记录一下EF core遇到:Exception Message: The instance of entity type 'Entity' cannot betracked because another instance with the same key value for {'PropertyId'} is already being tracked.原代码:context.PropertyEntity.UpdateRange(needUpdatedEntities);修改为:..原创 2020-06-01 13:53:40 · 2896 阅读 · 0 评论 -
解决浏览器图片缓存问题
问题:项目中有生成二维码,每次操作后生成新的二维码图片,地址不变,但是在浏览器中总是显示前几次生成的二维码,实际上新的二维码已重新生成,只是浏览器把图片缓存了所以一直都是第一次读取时的二维码。解决方案:可以在图片后加一个随机数,数字无意义,也不会产生影响,可以解决浏览器的缓存问题。eg:原地址:“/images/imgname.jpg";修改为:"/images/imgna原创 2017-12-28 18:33:07 · 5395 阅读 · 4 评论