随笔分类 -  .net core

摘要:mvc using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.HttpsPolicy; using Microsoft.Extensions.Configu 阅读全文
posted @ 2021-11-08 10:06 面无表情的石头 编辑
摘要:identityServer using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Dep 阅读全文
posted @ 2021-11-03 15:30 面无表情的石头 编辑
摘要:using Microsoft.Extensions.Configuration; using Novell.Directory.Ldap; using ProGra.Services.ADService; using System; using System.Collections.Generic 阅读全文
posted @ 2021-07-12 15:43 面无表情的石头 编辑
摘要: 阅读全文
posted @ 2021-01-18 11:12 面无表情的石头 编辑
摘要: 阅读全文
posted @ 2020-09-25 13:12 面无表情的石头 编辑
摘要: 阅读全文
posted @ 2020-08-27 10:59 面无表情的石头 编辑
摘要: 阅读全文
posted @ 2020-08-26 16:38 面无表情的石头 编辑
摘要:1、新建DbContext 继承IdentityDbContext namespace WebApplication34 { public class MyDbContext:IdentityDbContext { public MyDbContext(DbContextOptions<MyDbCo 阅读全文
posted @ 2020-04-08 13:04 面无表情的石头 编辑
摘要:先来个简单的 2、运行没毛病 3、查看TCP发现 TIME_WAIT 4 、 运行多次有多个 5、主角登场 在.Net Core2.1后,微软引入了HttpClientFactory彻底解决这个问题,工厂模式的职责是负责创建对象,这个类主要负责创建HttpClient实例 首先在StartUp中注册 阅读全文
posted @ 2020-01-16 16:44 面无表情的石头 编辑
摘要:1、接口定义 2、实现 3、测试IEnumerable 4、测试IQueryable 阅读全文
posted @ 2020-01-09 09:54 面无表情的石头 编辑
摘要:1 、安装Microsoft.AspNetCore.Authentication.JwtBearer 2、Startup添加服务 3、 增加TOKEN控制器 4、保护API 阅读全文
posted @ 2020-01-07 10:41 面无表情的石头 编辑
摘要:1、 install Microsoft.AspNetCore.Authentication.Cookies; 2、添加服务 3、过滤器 阅读全文
posted @ 2020-01-03 16:16 面无表情的石头 编辑
摘要:1、接口 using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Threading.Tasks; namespace WebAppl 阅读全文
posted @ 2020-01-03 16:08 面无表情的石头 编辑
摘要:1、自定义中间件 using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Configuration; using System; using System.Collections.Generic; using System.IO; u 阅读全文
posted @ 2020-01-03 14:47 面无表情的石头 编辑
摘要:1 nuget安装AutoMapper、AutoMapper.Extensions.Microsoft.DependencyInjection 2、添加dto 3、 配置 DTO 和实体映射类 4、注入服务 6、 使用 阅读全文
posted @ 2020-01-03 14:21 面无表情的石头 编辑
摘要:1、 新建实体 2、新建中间实体 3、添加导航属性 4、Fluent API 配置关系 5、 add-migraion 6 、 update-database 阅读全文
posted @ 2020-01-03 14:09 面无表情的石头 编辑
摘要:1、 新建实体 2、添加导航属性 3 、申明集合 4、add-migraion "add course"5、update-database 阅读全文
posted @ 2020-01-03 13:56 面无表情的石头 编辑
摘要:1、新建实体 二、Student 添加导航属性 3、 申明集合 4、 add-migration "add profile" 5 、update-database 阅读全文
posted @ 2020-01-03 13:48 面无表情的石头 编辑
摘要:1、建立实体 二、DBcontext 3、 startup 添加服务 4、配置appsetting.json 5、数据迁移 生成migrations文件夹后执行update-database 6、回退 update-database "init" 则回退到"init "这个版本 阅读全文
posted @ 2020-01-03 13:38 面无表情的石头 编辑

点击右上角即可分享
微信分享提示