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 刘顺利 阅读(275) 评论(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 刘顺利 阅读(433) 评论(0) 推荐(0)

asp.net core 读取配置

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

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

Asp.Net Core run on Ubuntu

摘要: dotnet *.dll 阅读全文

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

导航