在startup 添加数据库链接字符串

 services.AddDbContext<ApplicationDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SqlServerConnection")));

posted on 2019-08-09 17:13  一只狐狸。  阅读(366)  评论(0编辑  收藏  举报

导航