Base solution for your next web application
Open Closed

Change Database Name #2039


User avatar
0
avanekar02 created

Hello ,

i would like to change database name name frequently as my project demands it when i created a copy of the database and changed it in the connectionstring in the web,.config in the web project

it gives me the following error

The model backing the 'CmsProTestDbContext' context has changed since the database was created. Consider using Code First Migrations to update the database (<a class="postlink" href="http://go.microsoft.com/fwlink/">http://go.microsoft.com/fwlink/</a>?

pleasenote i did not find any connectionstring element in the app.config in the migrations project

please tell me how i can do this.

regards Anwar


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Let's continue here #1941. It's the same problem.