使用DbContextSeed初始化数据库 添加链接字符串 // This method gets called by the runtime. Use this method to add services to the container. public void ConfigureServices(IServiceCollection services) { //添加链接字符串 services.AddDbContext<ApplicationDbContext>(options =&g…