Click here to Skip to main content
15,881,424 members
Articles / Programming Languages / C#

IDbContextFactory which gets Connection String at runtime and triggers Automatic Migrations

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
4 Feb 2013CPOL 27.9K   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.
No downloads associated with this content

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

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


Written By
Software Developer Omicron electronics
Austria Austria
This member doesn't quite have enough reputation to be able to display their biography and homepage.

Comments and Discussions