Json.net serialisation issue when returning Entity Framework models in Web API
It’s very typical for Entity Framework models to have circular references. For example: public class Author { public Author() { Articles = new Collection<Article>(); } public int Id { get; set; } public string FirstName { get; set; } public string LastName { get; set; } public virtual ICollection<Article> Articles { get; set; } } … [Read more…]