Given I have an Entity with an readonly collection like this:
public sealed class MyEntity
{
public MyEntity()
{
}
[JsonConstructor]
public MyEntity(IEnumerable<string> tags)
{
Tags = tags?.ToList() ?? new List<string>();
}
[JsonProperty("tags")]
public ICollection<string> Tags { get; } = new List<string>();
}
Than it is not possible to patch it, besides the property beeing potentially writeable and also serializeable.
Given I have an Entity with an readonly collection like this:
Than it is not possible to patch it, besides the property beeing potentially writeable and also serializeable.