I\'m having some issues which I\'m guessing are related to self-referencing using .NET Core Web API and Entity Framework Core. My Web API starting choking when I added .Inc
Okay... I finally found some reference material on this. The solution is:
public void ConfigureServices(IServiceCollection services)
{
...
services.AddMvc()
.AddJsonOptions(
options => options.SerializerSettings.ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Ignore
);
...
}
I got this from here