Problem: InvalidOperationException: The database generated a null value for non-nullable property 'PropertyName' of entity type 'EntityName'. Ensure value generation configuration in the database matches the configuration in the model.
Solution: Make sure that you DBContext has a DBSet<YourModalName> givenName {get;set;}
- Also, make sure you read the documentation found at Microsoft's website LinkHere.