原文: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