Closed as not planned
Closed as not planned
Description
Allow to map part of the entity (i.e. multiple properties) to a single Json column without the need of wrapping them into Owned entity.
Given class
public class RangeItem
{
public int Quantity { get; set; }
public int From { get; set; }
public int To { get; set; }
<...>
}
configuration could look like
builder.Entity<RangeItem>.Property(x => x.Quantity).ToJson("Details").HasJsonPropertyName("Quantity");
builder.Entity<RangeItem>.Property(x => x.From).ToJson("Details").HasJsonPropertyName("From");
builder.Entity<RangeItem>.Property(x => x.To).ToJson("Details").HasJsonPropertyName("To");
In case of class hierarchy (TPH) reuse of the same Json column should be allowed as well.
This will require something similar to JSON column sharing.
Thanks.