aspnetboilerplate-samples/MultipleDbContextDemo
Halil İbrahim Kalkan b4db2a5027 Removed test exception code. 2015-12-24 19:44:23 +02:00
..
.nuget Extracted MultipleDbContextDemo 2015-12-13 18:33:45 +02:00
MultipleDbContextDemo.Application Removed test exception code. 2015-12-24 19:44:23 +02:00
MultipleDbContextDemo.Core Added seed data. 2015-12-13 18:48:20 +02:00
MultipleDbContextDemo.EntityFramework Added seed data. 2015-12-13 18:48:20 +02:00
MultipleDbContextDemo.Web Created UI to test. 2015-12-13 19:10:14 +02:00
MultipleDbContextDemo.WebApi Upgraded nuget packages. 2015-12-13 18:37:40 +02:00
MultipleDbContextDemo.sln Extracted MultipleDbContextDemo 2015-12-13 18:33:45 +02:00
README.md Update README.md 2015-12-13 19:10:48 +02:00

README.md

Multiple DbContext Demo

A sample project to show multiple EF DbContext working together.

How To Run

  • Open project in Visual Studio 2013+.
  • Select MultipleDbContextDemo.Web as start project.

Run Migrations

  • Open Package Manager Console, select MultipleDbContextDemo.EntityFramework as default project.
  • Run command to create first db: Update-Database -ConfigurationTypeName "MultipleDbContextDemo.Migrations.Configuration"
  • Run command to create second db: Update-Database -ConfigurationTypeName "MultipleDbContextDemo.MigrationsSecond.Configuration"

Run Application

  • Run application with F5.
  • You can see peole and course list.
  • You can create a new person here.

Notes

  • MSDTC (Distributed Transaction Coordinator) should be running on your computer.