随笔- 672
文章- 2
评论- 325
阅读-
281万
05 2020 档案
C#中JSON字符串中的转义字符
摘要:新建一个.NET Core控制台项目,然后引入Json.NET的NuGet包:Newtonsoft.Json,我们使用Json.NET将类序列化为JSON字符串,再将JSON字符串反序列化为类,代码如下: using Newtonsoft.Json; using System; namespace
阅读全文
使用文件流,读写网络共享盘
摘要:新建一个.NET Core控制台项目,使用文件流读写网络共享盘文件,如下所示: using System; using System.IO; using System.Text; namespace NetCoreShareFolderReading { class Program { static
阅读全文
Does Redis lock during write?(转载)
摘要:问: I tried to find out but I don't sure that is Redis MVCC? Does Redis allow reading during writing? 答: Redis is single-threaded. All commands are ato
阅读全文
ASP.NET Core : Synchronous operations are disallowed. Call WriteAsync or set AllowSynchronousIO to true instead(转载)
摘要:问: ASP.NET core server, AllowSynchronousIO is set to false new WebHostBuilder() .UseKestrel(options => { options.AllowSynchronousIO = false; }) In the
阅读全文
关于Microsoft.Data.SqlClient(链接)
摘要:官方NuGet链接如下: Microsoft.Data.SqlClient 微软官方文档介绍: Introduction to Microsoft.Data.SqlClient namespace 另一篇很详细的介绍文章: Introducing the new Microsoft.Data.Sql
阅读全文