Created
August 7, 2019 21:26
-
-
Save icavalheiro/9f5cabc74ccc74ff961b68a9f0862cf9 to your computer and use it in GitHub Desktop.
Scaffold database with ef core
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# dotnet add package MySql.Data.EntityFrameworkCore | |
# dotnet add package Microsoft.EntityFrameworkCore.Design | |
# dotnet tool install --global dotnet-ef --version 3.0.0-* | |
dotnet ef dbcontext scaffold "server=localhost;port=3306;user=root;password=mypass;database=databasename" MySql.Data.EntityFrameworkCore -o Database -f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment