Skip to content

Instantly share code, notes, and snippets.

@offirpeer
Created February 19, 2019 15:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save offirpeer/3d67b3de5a9bf96db7e106fbf9b824a1 to your computer and use it in GitHub Desktop.
Save offirpeer/3d67b3de5a9bf96db7e106fbf9b824a1 to your computer and use it in GitHub Desktop.
Entity Framework - Database first command - in vs command prompt
dotnet ef dbcontext scaffold "Server=DESKTOP-RTJD9AH\SQLEXPRESS;Database=gringo;Trusted_Connection=true;" Microsoft.EntityFrameworkCore.SqlServer -o Models
@offirpeer
Copy link
Author

  1. Open Developer command prompt vs 2017
  2. run "cd C:\Users\Offir\source\repos\gringomvc\gringomvc"
  3. Run the following command

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment