Angular Commands

  • ng new ProjectName – creating a new project file
  • ng serve -o — running application
  • ng generate component Pagename — creating a new page
    • ng g c Pagename — creating a new page
  • ng g s ServiceName — creating a service page
  • ng g class NameOftheModel –type=model /*creating a model class*/

.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