07 2023 档案
摘要:1.安装NuGet程序包 Microsoft.EntityFrameworkCore.Tools Microsoft.EntityFrameworkCore.SqlServer 2.配置Program,注入 AddDbContext 单例模式 builder.Services.AddDbContex
阅读全文
摘要:引用Nuget包 AutoMapper AutoMapper.Extensions.Microsoft.DependencyInjection 配置Program.cs //添加Profile builder.Services.AddAutoMapper(AppDomain.CurrentDomai
阅读全文