[RESOLVED]Generating seed from an existing database

Hello I have a code first entity framework project. The project is ready to be deployed but unfortunately it already contains data that cannot be erased. How can I deploy without loosing this data. My guess was to generate a seed method from the existing
data, but the question is: How do I do that?



And you can’t deploy the db file? For example doing  a backup/restore operation to restore the initial db to your production configuration? See perhaps the documentation for your host service?

Leave a Reply