I have a mssql database for my website within 4 tables.
When I use this:
public static string GetAllEventsForJSON() { using (CyberDBDataContext d
Add "[JsonIgnore]" to your model class
{ public Customer() { Orders = new Collection(); } public int Id { get; set; } public string Name { get; set; } public string Surname { get; set; } [JsonIgnore] public ICollection Orders { get; set; } }