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

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.

Statistics


License

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

About the Author

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

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