.Net Core, Entity framework Core command and package

  • Microsoft.EntityFrameworkCore.SqlServer
  • Microsoft.EntityFrameworkCore.SqlServer.Design
  • Microsoft.EntityFrameworkCore.Design
  • Microsoft.EntityFrameworkCore.Tools

/*Reverse engineering*/

  • Scaffold-DbContext “connectionString” Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models

/*Short Cuts*/

  • For Creating constructor
    • ctor tab tab

/*Database Migration*/

  • Add-Migration
  • Update-Database

Leave a Reply

Your email address will not be published.