secret-manager

ef core migration can't use secret manager

丶灬走出姿态 提交于 2019-12-04 04:10:26
问题 When I create .net core web applications, I use the secret manager during testing. I am generally able to create a new web project (mvc and web api), right click on the project and select "manage user secrets". This opens a json file where I add the secrets. I then use this in my startup.cs something like this: services.AddDbContext<ApplicationDbContext>(options => options.UseMySql(Configuration["connectionString"])); The website works fine with this and connects well to the database. However