原文:The entity type 'XXX' requires a primary key to be defined. If you intended to use a keyless entity type call 'HasNoKey()'

.NET Core使用EF時 報錯如下信息:The entity type XXX requires a primary key to be defined. If you intended to use a keyless entity type call HasNoKey 源代碼為:Model.DataModelContext context new Model.DataModelContex ...

2020-04-10 14:21 0 4639 推薦指數:

查看詳情

 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM