摘要: 1.安装 Autofac 和 Autofac.Extensions.DependencyInjection2.举例如何使用,创建一个Interface类库和Service类库Interface是接口,Service是实现,注意需要引用这两个类库3,新建一个Config文件夹-> AutofacInt 阅读全文
posted @ 2024-08-08 10:48 龙卷风吹毁停车场 阅读(60) 评论(0) 推荐(0)
摘要: 1. 安装automapper2.创建一个Config文件夹->创建AutoMapperConfigs.cs文件3.配置AutoMapperConfigs.cs, 里面的实体类我就不展示了,太多了 namespace Fresh.Config { public class AutoMapperCon 阅读全文
posted @ 2024-08-08 10:17 龙卷风吹毁停车场 阅读(75) 评论(0) 推荐(0)
摘要: builder.Services.AddAuthentication(option => { option.DefaultAuthenticateScheme = CookieAuthenticationDefaults.AuthenticationScheme; }).AddCookie(Cook 阅读全文
posted @ 2024-08-08 08:44 龙卷风吹毁停车场 阅读(9) 评论(0) 推荐(0)