You must Sign In to post a response.
  • Category: ASP.Net MVC

    Problem in entity framework

    I am new user of ASP.NET MVC. I have developed model for entity framework. I can see the tables in the diagram. But there are no columns in Navigation. I tried adding the reference of entity framework in a controller but it gave error that the primary key of the tables in missing.
  • #763334
    If you want to create the Navigation property, you have to set the primary key for that table.

    Navigation column should be the primary key column of the other table

    By Nathan
    Direction is important than speed

  • Sign In to post your comments