Entity Framework change database server in database-first approach -


we have server machine host several databases development , test purpose.

my entity framework projects use database-first approach since created , administered else.

in of them had rename relationship.

now moved these database newer server, changing ip address. how can update projects keep diagrams?

if change connection string in web.config, connect new database, lose relationship imported entities.

if delete , re-import i'll have re-apply subtle changes i've made far.

how can tell entity framework point new server , in entities still same?

thank you.

i solved manually editing edmx file.

close visual studio , open edmx file text editor.

change occurence of schema="old schema" schema="new schema" re-open visual studio.


Comments