Skip to content

Instantly share code, notes, and snippets.

@cppshane
Created August 13, 2022 14:16
Show Gist options
  • Save cppshane/a08135ada9ec24e23e741b6cbc9d3c0d to your computer and use it in GitHub Desktop.
Save cppshane/a08135ada9ec24e23e741b6cbc9d3c0d to your computer and use it in GitHub Desktop.
EF Core Scaffold
# You'll need to install dotnet-ef cli if you haven't already
dotnet tool install --global dotnet-ef
# Begin scaffolding database
dotnet ef dbcontext scaffold "server=127.0.0.1;uid=root;pwd=password;database=classicmodels" Pomelo.EntityFrameworkCore.MySql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment