WebAPI response causes “System.OutOfMemoryException”
问题 I developed a WebAPI service which returns in its response an array of complex custom objects. Some of their fields have many-to-many relations. For example: [Table("OEReferences", Schema = "public")] public class OEReference { [NotMapped] public IList<IAReference> IAReferences{ get; set; } } [Table("IAReferences", Schema = "public")] public class IAReference { [NotMapped] public IList<OEReference> OEReferences{ get; set; } } Each OEReference object has a list of IAReferences, which at the