Skip to content

dotnet tool install --global dotnet-ef

1 post1 contributor

+ FollowBe the first to follow this
Write about it

Everything about dotnet tool install --global dotnet-ef

  1. Advanced Entity Framework Core: Extract data access layer with migrations to the library project and Execute migrations from the command line

    See code examples in this article: Let's imagine you have a solution with many projects including a web application with the name "MiniService", which contains appsettings.json and a library project with DbContext and Migrations with any name f.e. "MiniService.Data". You most likely want to use the exact connection string in the appsettings.json used by the web app. May be different cases when you will need to run migrations from the command line, for example, there is no 'Package Manager Console' in VS for Mac.

    Vitalii HoncharukVitalii Honcharuk14,4451,000Article