MoPro Initial Project Setup

Standard

Required Tools

  • Microsoft Visual Studio 2013 Update 4 (Version 12.0)
  • Microsoft .Net (Version 4.5)
  • Microsoft SQL Server 2014

Adding and Updating the object/properties database

Using the Package Manager Console

1. Add a new object or property in Entity Folder

2. Add a mapping for the new object in Map folder

3. Add DBSet Properties in DbContext, and add in the modelbuilder

4. Go to Tools > Nuget Package Manager > Package Manager Console

PM> enable-migrations

….

PM> add-migration initial

By running this script, VS will generate the migration files in the Migrations Folder

5. Run

PM> update-database

 

Reference