Cannot create controller with Entity framework - Unable to retrieve metadata for ' '

前端 未结 1 1271
栀梦
栀梦 2021-01-27 06:10

I am a noob to ASP.net and have no idea why the controller isnt being created, in the tutorial by me copying it from word to word it worked fine allowing me to create a database

相关标签:
1条回答
  • 2021-01-27 06:36

    To Solve the issue try adding a primary key into the model.

    [Key]
    [Required]        
    public long ID{ get; set; }
    

    This should solve the issue.

    0 讨论(0)
提交回复
热议问题