Last post Jan 25, 2016 10:38 AM by Zhi Lv - MSFT
Jan 25, 2016 06:59 AM|alex_fajardo2002|LINK
Currently I created a project using code first, added some functions and stored procedures to the database...
I deployed the MVC application to the client with the database hosted on them locally.
Problem now is : There are some revisions, Now I took a backup of their database and restored it to my machine.
It seems that entity framework cannot detect the database because it is saying
I have tried to restore the database with the move option. still no luck. Tried attaching the database from the client to my machine, still no luck.
Jan 25, 2016 07:58 AM|Mikesdotnetting|LINK
You probably need to stop the database initialiser from executing:
private static YourContext()
Jan 25, 2016 10:38 AM|Zhi Lv - MSFT|LINK
You could also try to create a new database and use it.
Please refer to the following threads: