NET CORE配置EF连接字符串

在appsettings.json中配置好连接字符串{"ConnectionStrings":{
"BloggingDatabase":"...
net core启动报错Unable to configure HTTPS endpoint. No server certificate was specified

这是因为net core2.1默认使用的https,如果使用Kestrel web服务器的话没有安装证书就会报这个错其实仔细看他的错...
.net core使用response

使用response输出字符串方法1:Response.Body.Write(System.Text.Encoding.UTF8.GetBytes("新年快乐")...
Net Core中使用cookie

net core中可以使用传统的cookie也可以使用加密的cookieNET CORE中使用传统cookie设置:HttpContext.Response.Co...
asp.net core2.0 依赖注入 AddTransient与AddScoped的区别

asp.net core主要提供了三种依赖注入的方式其中AddTransient与AddSingleton比较好区别AddTransient瞬时模式:每...
.net core 使用session

使用nuget添加引用Microsoft.AspNetCore.Session在nuget中执行命令 :Install-PackageMicrosoft.AspNetCore.Sessi...