Click here to Skip to main content
Click here to Skip to main content

IDbContextFactory which gets Connection String at runtime and triggers Automatic Migrations

, 4 Feb 2013 CPOL
Sample code showing how to implement IDbContextFactory for retrieving ConnectionString at runtime and trigger automatic migrations. For use with DI and IoC or if you have different databases with the same model.


Members may post updates or alternatives to this current article in order to show different approaches or add new features.

No alternatives have been posted.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Software Developer Omicron electronics
Austria Austria
2006-2011 HTL Dornbirn - Betriebsinformatik
2011 Cisco CCNA
2011/12 TU Wien - Software Engineering (1 Semester)
Software Engineer at suite (
ASP.NET, Windows Azure, MS SQL Server
since 2013
Software Engineer at Omicron electronics (

| | Privacy | Terms of Use | Mobile
Web01 | 2.8.150327.1 | Last Updated 4 Feb 2013
Article Copyright 2013 by retsnoM
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid