To rectify the issue of mandatory fields in an EF core-built .NET core API, follow the steps below:
If the issue persists, check if the "ApiController" attribute is present at the top of the controller and whether the "services.AddControllers();" line is included in the startup.cs file. If not, add them, rebuild the project, and test again.
Asked: 2022-01-10 11:00:00 +0000
Seen: 7 times
Last updated: Jun 21 '21