Esempio n. 1
0
            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);
            }
Esempio n. 2
0
 protected override TableOperation GetUpdatableTableEntity(EventDataTableEntity <EventData> data)
 {
     return(GetUpdatableTableEntity(data.EventData));
 }