-
Jan 7th, 2016, 03:31 AM
#1
Thread Starter
Fanatic Member
[RESOLVED] How to downgrade EF 6 to 5?
I have VS 2013, and starting to learn MVC EF. However, an error keeps prompting saying when adding a controller:
Unable to retrieve metadata of ....
I already added a DbSet in Model and connectionstring with the same name of my Context in web.config.
I also tried to remove the connectionstring and Add the controller first, but still not working.
Anyone can help me out here.
MVC 5
EF 6.1.0
VS 2013
Last edited by aNubies; Jan 7th, 2016 at 03:56 AM.
-
Jan 7th, 2016, 04:00 AM
#2
Thread Starter
Fanatic Member
Re: How to downgrade EF 6 to 5?
Here is the error message.
-
Jan 7th, 2016, 04:04 AM
#3
Thread Starter
Fanatic Member
Re: How to downgrade EF 6 to 5?
I fix it . For those who will encounter the same problem just add a [Key] annotation to your model variable.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|