Derived type’s properties missing in JSON response from ASP.NET Core API

While the other answers are good and solves the problem, if all you want is the general behavior to be like pre netcore3, you can use the Microsoft.AspNetCore.Mvc.NewtonsoftJson NuGet package and in Startup.cs do: services.AddControllers().AddNewtonsoftJson() More info here. This way, you don’t need to create any extra json-converters.

Unable to create an object of type ‘ApplicationDbContext’. For the different patterns supported at design time

I found the cause of this error could be multiple things in your code. For me at least, the best way was to add verbose in command. With that will be able to understand what is the problem. the verbose will display all steps of the execution. In visual studio use: add-migration Added_something -verbose For … Read more

tech