Click here to Skip to main content
15,894,343 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.5K   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

Views

Daily Counts

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