Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

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.



Compare Revision Minor Date Status Editor
2 - publicly available No 4-Feb-13 10:43 Available Smitha Vijayan
Updates in content. 14 changes had been made.
1 No 4-Feb-13 10:18 Pending retsnoM
Initial creation


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 (

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.141223.1 | Last Updated 4 Feb 2013
Article Copyright 2013 by retsnoM
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid