Skip to content

itgigs fire it up in 13 steps

lyuben kikov edited this page Feb 18, 2018 · 2 revisions

Back to Home


  • Step 1: Switch to your prefered local machine working directory
    • PowerShell command: cd d://my-cool-projects
  • Step 2: Clone the repo
    • PowerShell command: git clone https://github.com/BaiGanio/PU-DB-Apps-with-EF.git
  • Step 3: Switch to repo folder
    • PowerShell command: cd ./PU-DB-Apps-with-EF
  • Step 4: Switch to itgigs-webapp branch
    • PowerShell command: git checkout itgigs-webapp
  • Step 5: Open project folder in File Explorer
    • PowerShell command: ii .
  • Step 6: Find .sln file & open it with Visual Studio
  • Step 7: Be sure Migrations folder in ITGigs.DB class library project is deleted
  • Step 8: Make sure you enter your own db credentials in ITGigs.DB.Helpers.DbConnections.cs
    • You can choose each for AppHarbor or Azure db credentials
    • Update ITGigs.DB.AppDbContext.cs constructor with the desired db connection
  • Step 9: Be sure you can access the db with your local SQL Management Studio
  • Step 10: If you have any old tables in your db
    • Use some help from -> here!
    • Be sure any __EFMigrationsHistory tables in your SQL Management Studio are deleted
  • Step 11: Execute the following in Package Manager Console of your Visual Studio project against ITGigs.DB default project
    • add-migration InitialMigration
    • update-database
  • Step 12: Check your db for data
  • Step 13: Hit Ctrl + F5 and you are ready

Craftsman menu


Required Tools 4 Course


External resources


Useful Things


Internal resources

Basic OOP recall

Database 1st with local db

Code1st with external db instance (part1)

Clone this wiki locally