Results 1 to 3 of 3

Thread: [RESOLVED] How to downgrade EF 6 to 5?

  1. #1

    Thread Starter
    Fanatic Member aNubies's Avatar
    Join Date
    Aug 2008
    Posts
    558

    Resolved [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.

  2. #2

    Thread Starter
    Fanatic Member aNubies's Avatar
    Join Date
    Aug 2008
    Posts
    558

    Re: How to downgrade EF 6 to 5?

    Name:  EF.jpg
Views: 235
Size:  51.0 KB

    Here is the error message.

  3. #3

    Thread Starter
    Fanatic Member aNubies's Avatar
    Join Date
    Aug 2008
    Posts
    558

    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
  •  



Click Here to Expand Forum to Full Width