EntityType: EntitySet ‘[Entity Name]’ is based on type ‘[Entity Name]’ that has no keys defined
So, the exception completely indicates to us that it is not able to find a Key in the model, which is defined in the database for that entity. Problem When you design a model class for the entity, you define many properties including keys, if any. Bu...
Nov 9, 20152 min read450
![EntityType: EntitySet ‘[Entity Name]’ is based on type ‘[Entity Name]’ that has no keys defined](/_next/image?url=https%3A%2F%2Fcdn.hashnode.com%2Fres%2Fhashnode%2Fimage%2Fstock%2Funsplash%2FnpxXWgQ33ZQ%2Fupload%2Fdd6380247a6491b4b69118a87b2885de.jpeg&w=3840&q=75)