Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

The entity type requires a primary key to be defined.

Watcher O_O answered on May 22, 2020 Popularity 8/10 Helpfulness 6/10

Contents


More Related Answers

  • The entity type 'IdentityUserLogin<int>' requires a primary key to be defined. If you intended to use a keyless entity type call 'HasNoKey()'
  • System.InvalidOperationException: The entity type 'City' requires a primary key to be defined. If you intended to use a keyless entity type, call 'HasNoKey' in 'OnModelCreating'. For more information on keyless entity types, see https://go.microsoft.com/f

  • The entity type requires a primary key to be defined.

    1

    The entity type requires a primary key to be defined. 

    Your id should contain the [Key] identification, and also need to be public.

    Popularity 8/10 Helpfulness 6/10 Language csharp
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Apr 18 2023
    Watcher O_O
    0 Answers  Avg Quality 2/10

    Closely Related Answers



    0
    Popularity 8/10 Helpfulness 3/10 Language whatever
    Link to this answer
    Share Copy Link
    Contributed on May 22 2020
    Concerned Capuchin
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.