runtime icon indicating copy to clipboard operation
runtime copied to clipboard

I can't use "dotnet ef database update --environment RELEASE"

Open codeoflin opened this issue 7 years ago • 4 comments

image

image

what should I replace?

codeoflin avatar Sep 18 '19 17:09 codeoflin

Shouldn't you set ASPNETCORE_ENVIRONMENT=Production? What makes you think there's an environment switch? 🤔

khellang avatar Sep 18 '19 18:09 khellang

Shouldn't you set ASPNETCORE_ENVIRONMENT=Production? What makes you think there's an environment switch? 🤔

https://www.learnentityframeworkcore.com/migrations/commands/cli-commands

I just want use it when I update the database

codeoflin avatar Sep 18 '19 23:09 codeoflin

@codeoflin could you move this to https://github.com/aspnet/EntityFrameworkCore ? You'll probably get your answer there.

danmoseley avatar Sep 19 '19 00:09 danmoseley

@codeoflin could you move this to https://github.com/aspnet/EntityFrameworkCore ? You'll probably get your answer there.

ok thanks

codeoflin avatar Sep 21 '19 17:09 codeoflin