Entity Framework Code-first default data in database

How do I handle situations in which I need pre-existing data before the app is started or right after the database is generated. For example, I have a list of countries in which I'd like to load into the database after code-first generates it. How do I do this?

App is structured as follows:

Repository > Service > WebMVC

The xml is in the WebMVC project.

45
задан Ladislav Mrnka 13 April 2011 в 21:29
поделиться