ngtphat.towa
EF core generated code does not contain a definition for 'HasDiscriminator'
To be honest, I lack of knowledge about ef-core configuration . I just understand what course's author archives, however i never configure efcore before. I suppose it working like previous efcore version 7.
9 replies
What is the best way to return errors in api controllers?
There are many way to handle that.
Here some post i noted could help you on that:
https://andrewlock.net/creating-a-custom-error-handler-middleware-function/)
https://learn.microsoft.com/en-us/aspnet/core/fundamentals/error-handling?view=aspnetcore-8.0)
[https://learn.microsoft.com/en-us/aspnet/core/web-api/handle-errors?view=aspnetcore-8.0)
RFC Specification
https://www.rfc-editor.org/rfc/rfc791
https://code-maze.com/global-error-handling-aspnetcore/
4 replies