2019年2月1日

.NET Core中使用Cookie步骤

摘要: 1.Nuget Microsoft.AspNetCore.Authentication.Cookies 2.using Microsoft.AspNetCore.Authentication.Cookies 3. 阅读全文

posted @ 2019-02-01 17:50 刘顺利 阅读(258) 评论(0) 推荐(0) 编辑

.NET Core中使用Session步骤

摘要: .NET Core中使用Session步骤如下: 1、安装Microsoft.AspNetCore.Session NuGet包 2、修改Startup.cs 添加相关服务,services.AddSession()和app.UseSession() 3、Session 用法 引用 Session写 阅读全文

posted @ 2019-02-01 17:12 刘顺利 阅读(420) 评论(0) 推荐(0) 编辑

asp.net core 读取配置

摘要: var configuration = new ConfigurationBuilder().SetBasePath(Environment.CurrentDirectory) .AddJsonFile("appsettings.json") .Build(); DBUtility.ConfigIn 阅读全文

posted @ 2019-02-01 15:07 刘顺利 阅读(96) 评论(0) 推荐(0) 编辑

Asp.Net Core run on Ubuntu

摘要: dotnet *.dll 阅读全文

posted @ 2019-02-01 14:23 刘顺利 阅读(89) 评论(0) 推荐(0) 编辑

导航