We are using protobuf-net (and love it!). We now have a protocontract-decorated child class derived from a parent base class, which IS NOT protocontract-decorated.
We are trying to get the child class to serialize/deserialize some of the parent class’ fields.
public abstract class TableServiceEntity
{
public virtual string PartitionKey { get; set; }
public virtual string RowKey { get; set; }
public DateTime Timestamp { get; set; }
}
[ProtoContract]
public class IndicatorStreamIndex : TableServiceEntity
{
// protomember properties
}
How can we get IndicatorStreamIndex to serialize/deserialize PartitionKey, RowKey, and Timestamp?
Best,
Mike
This can be configured pretty easily in v2, using
RuntimeTypeModelto tweak the configuration at runtime: