Base solution for your next web application
Open Closed

Entity Framework migrations are ignoring profiles #5228


User avatar
0
sedulen created

I've read several articles and tried several things for example: [https://stackoverflow.com/questions/45881069/ef-core-don%C2%B4t-use-aspnetcore-environment-during-update-database]). I've tried both the donet cli as well as VS package manager I'm setting ASPNETCORE_ENVIRONMENT to "Development"and then running Update-Database --verbose or dotnet ef database update -v and in both cases, it appears to be attempting to the connectionString defined in appsettings.json and not in appsettings.Development.json


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    @sedulen you could try to use Migrator tool in the solution which also updates separate databases for tenants if you are using db per tenant approach.