Click here to Skip to main content
11,805,316 members (63,048 online)
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 9.7K 4
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
4 - publicly available No 10-Jul-15 10:32 Available Sean Ewington
Initial creation
3 No 10-Jul-15 10:10 Pending retsnoM
2 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 (

You may also be interested in...

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