Click here to Skip to main content
15,893,368 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 28K   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.

Alternatives

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.

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