JsonPatchDocument onto a complex Entity Framework tracked object
问题 I am trying to use Json patches to update entities stored in an Entity Framework data context. I have entity classes like so - public class Customer { public Guid Id { get; set; } public string Name { get; set; } public virtual ICollection<Quote> Quotes { get; set; } } public class Quote { public Guid Id { get; set; } public int Order { get; set; } public string Status { get; set; } } To apply the patch onto a Customer object, I query the source from the data context, then apply the patch,