Friday, April 10, 2020

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

As the title says The entity type '' requires a primary key to be defined. If you intended to use a keyless entity type call 'HasNoKey()'.

In the previous post I had shown

Source Code
Add [key] attribute to primary key field with namespace System.ComponentModel.DataAnnotations;

No comments:

Post a Comment