Microsoft's ASP.NET MVC sample site adapted for my Octopus Deploy demos and talks
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
build
src
test/ContosoUniversity.Site.Tests
.gitattributes
.gitignore
ContosoUniversity.sln
README.md
SolutionInfo.cs

README.md

Contoso University

This repro contains Microsoft's ASP.NET MVC sample site adapted for my Octopus Deploy demos and talks. The original sources came from https://code.msdn.microsoft.com/ASPNET-MVC-Application-b01a9fe8.

I have adapted Microsoft's solution by splitting the MVC project into three:

  1. There is a project containing just the MVC site.
  2. A data project contains the Entitiy Framework DbContext, entities and migrations.
  3. A core project contains code shared by the site and data access projects.

The master branch is the starting point for my demos and talks.

Deploying SQL databases using Entity Framework migrations and Octopus Deploy

The sample code used in my talks and on my blog can be found in the octopus-deploy branch. Commit 6c40dc6 has all the detail of the Deploy.ps1, custom .nuspec file etc. that I use.

For a full write up, please see my blog post here: http://www.kevinkuszyk.com/2016/10/26/deploying-sql-databases-using-entity-framework-migrations-and-octopus-deploy.