[Entity Framework Core 5] An Unhandled Exception Occurred While Processing the Request


Question: How do you solve the Entity Framework Core Error: "An Unhandled Exception Occurred While Processing the Request"?

Login to See the Rest of the Answer

Answer: Add nullable's to the Modal Class like so: public int? Old {get; set;} or public string? youName {get; set;}
What is happening is that the data getting retrieved has empty strings in it or is null.






© 2023 - ErnesTech - Privacy