I am coding a C# MVC 5 internet application and I have changed the context class. I wish to create a new database with the changed context class as I am getting the following error:
Invalid object name 'dbo.MapLocations'.
I have renamed the database name in the web.config, compiled and run the application, yet am still getting the above error.
How can I recreate the database to have the structure of my context class such that I do not get the above error? I thought that specifying a new database name will automatically create a new database using the entity framework.
I have no important data in the database.
Thanks in advance
EDIT
I have manually deleted the files in the App_Data folder for the project, enabled migrations, added a migration and then updated the database.
This is the error that I am getting in the package manager console:
Cannot attach the file 'C:\Users\**path**\App_Data\CanFindLocation.Context.DataContext.mdf' as database 'CanFindLocation.Context.DataContext'.