Click here to Skip to main content
15,881,204 members
Articles / Desktop Programming / Win32

Ensure Your Code First DB is Always Initialized

Rate me:
Please Sign up or sign in to vote.
4.89/5 (2 votes)
27 Jun 2012CPOL1 min read 18.4K   5  
A quick and easy way to ensure that your Code First DB Initializer is always run when your app starts, not just on the first data access operation
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
Founder Erisia Web Development
South Africa South Africa
I am a software developer in Johannesburg, South Africa. I specialise in C# and ASP.NET MVC, with SQL Server, with special fondness for MVC and jQuery. I have been in this business for about eighteen years, and am currently trying to master Angular 4 and .NET Core, and somehow find a way to strengthen my creative faculties.
- Follow me on Twitter at @bradykelly

Comments and Discussions