protected override ITableEntity CreateTableEntity(EventData data) { var tableEntity = new EventDataTableEntity <EventData>(data, IsCorrelationIdTableStorageStore); //Flatten object of type TData and convert it to EntityProperty Dictionary Dictionary <string, EntityProperty> flattenedProperties = EntityPropertyConverter.Flatten(data, new OperationContext()); // Create a DynamicTableEntity and set its PK and RK DynamicTableEntity dynamicTableEntity = new DynamicTableEntity(tableEntity.PartitionKey, tableEntity.RowKey) { Properties = flattenedProperties }; return(dynamicTableEntity); }
protected override TableOperation GetUpdatableTableEntity(EventDataTableEntity <EventData> data) { return(GetUpdatableTableEntity(data.EventData)); }