I have a mssql database for my website within 4 tables.
When I use this:
public static string GetAllEventsForJSON() { using (CyberDBDataContext d
If using ASP.NET Core MVC, add this to the ConfigureServices method of your startup.cs file:
services.AddMvc() .AddJsonOptions( options => options.SerializerSettings.ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Ignore );