asp.net mvc - Changing the structure of my database / edmx model -
i using edmx
editor create database visually, whenever change structure, , choose option "generate database model", current data in database wiped.
is @ possible change structure of database, , retain data?
how people work around problem?
thank you
here solutions:
- use code first or database first workflow, suggested in comment question. note: can use code first existing database.
- maintain data insert script should run after every "generate database model".
- make schema changes in database first, use "update model database" instead of "generate database model".
if using code first workflow possibility you, recommend going route.
hope helps.