上一页 1 2 3 4 5 6 ··· 10 下一页
摘要: 1. MemoryCache中的缓存在集群中的每个节点不能同步 解决方案: A. 将缓存内容迁移到系统外部的Redis缓存 B. 在使用MemoryCache的时候设置过期时间(当对数据同步要求不是那么严格的时候使用) 2.C# 静态变量各集群节点不能同步 解决方案: 将各节点需要共用的静态变量序列 阅读全文
posted @ 2019-08-29 14:16 龍☆ 阅读(590) 评论(0) 推荐(0) 编辑
摘要: 需求:根据当前时间,获取条件合适的数据,其中截止时间只比较日期。 1. 运行会报错的版本: 这里查资料得知:sql里面没有根据当前日期再获取Date的函数,因此不能转换成功,直接报错。 2.比较整个时间,不取出当前日期进行比较,有bug: 该linq转化为sql语句为: 3.实现需求的无错版本: 转 阅读全文
posted @ 2019-07-31 16:19 龍☆ 阅读(885) 评论(0) 推荐(0) 编辑
摘要: 详细说明转 https://www.cnblogs.com/dotnet261010/p/9034594.html 最近项目用到了多个参数的泛型方法,这里说明下泛型的组成: 本方法中包含了3个类型参数,分别是Process<TRequestBody,TTestParam, TResponse>,在P 阅读全文
posted @ 2019-07-30 17:15 龍☆ 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 存在这样一些数据 ,,,,dga bc,,aaaa,,,,,,,,dga bc,,aaaa,,,,,,,dga bc,,aaaa,,,,,,,dga bc,,aaaa,,,,,, 需要将最后多余的逗号去掉 当数据中本来不存在空格的情况下,可以使用下面的方式简单的去掉 思路是把所有逗号换成空格 然后去 阅读全文
posted @ 2019-07-23 14:00 龍☆ 阅读(2038) 评论(0) 推荐(0) 编辑
摘要: 先生成1~1000的随机数 class Program { // Create a new instance of the RNGCryptoServiceProvider. private static System.Security.Cryptography.RNGCryptoServicePr 阅读全文
posted @ 2019-07-14 10:25 龍☆ 阅读(338) 评论(0) 推荐(0) 编辑
摘要: 当导出2007格式的时候,打开文件总是报错“发现 xxx中的部分内容有问题。是否让我们尽量尝试恢复?”。 导出的程序: 从dataset创建excel表格的方法: Response.Flush() Response.End()的区别 //Response.Flush() 将缓存中的内容立即显示出来/ 阅读全文
posted @ 2019-07-12 12:24 龍☆ 阅读(860) 评论(0) 推荐(0) 编辑
摘要: Source from :https://www.codeproject.com/Articles/1260600/Speed-up-ASP-NET-Core-WEB-API-application-Part-1 Download source from GitHub Introduction In 阅读全文
posted @ 2019-05-02 17:23 龍☆ 阅读(437) 评论(0) 推荐(0) 编辑
摘要: 转自: https://www.infoq.com/articles/advanced-architecture-aspnet-core ASP.NET Core's new architecture offers several benefits as compared to the legacy 阅读全文
posted @ 2019-05-01 21:20 龍☆ 阅读(383) 评论(0) 推荐(0) 编辑
摘要: 转自: https://blog.csdn.net/themagickeyjianan/article/details/80333645 改进版本:合并多个提交为一条(git merge --squash branchname) 但是,操作方便并不意味着这样操作就是合理的,在某些情况下,我们应该优先 阅读全文
posted @ 2019-04-24 13:50 龍☆ 阅读(6395) 评论(0) 推荐(0) 编辑
摘要: 转自:https://csharpindepth.com/Articles/Singleton#unsafe Implementing the Singleton Pattern in C# Table of contents (for linking purposes...) Introducti 阅读全文
posted @ 2019-04-22 14:51 龍☆ 阅读(169) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 10 下一页