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

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

Mohamed Sami khiari answered on March 21, 2023 Popularity 9/10 Helpfulness 4/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()'
  • The entity type requires a primary key to be defined.
  • The entity type 'Palavra' requires a primary key to be defined
  • how to use a keyless entity type, call 'HasNoKey' in 'OnModelCreating'

  • 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

    0

    Add a key

    Popularity 9/10 Helpfulness 4/10 Language whatever
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Mar 21 2023
    Mohamed Sami khiari
    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.