I am building a web application using VS 2012 MVC4 code first. In order to recreate the .mdf
file after I changed the model, I manually deleted the file from the app_data directory in VS. I have done this a few times before without any problem.
Now I receive an exception:
The underlying provider failed on Open. ==> Cannot attach the file
MYDB.mdf
as database 'MYDB'
.
I will appreciate your help on how to recreate the .mdf
file.
Thank you!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…