Udostępnij za pośrednictwem


EntityPropertyConverter.Flatten Method

Definition

Overloads

Flatten(Object, OperationContext)

Traverses object graph, flattens and converts all nested (and not nested) properties to EntityProperties, stores them in the property dictionary. The keys are constructed by appending the names of the properties visited during pre-order depth first traversal from root to each end node property delimited by '_'. Allows complex objects to be stored in persistent storage systems or passed between web services in a generic way.

Flatten(Object, EntityPropertyConverterOptions, OperationContext)

Traverses object graph, flattens and converts all nested (and not nested) properties to EntityProperties, stores them in the property dictionary. The keys are constructed by appending the names of the properties visited during pre-order depth first traversal from root to each end node property delimited by '_'. Allows complex objects to be stored in persistent storage systems or passed between web services in a generic way.

Flatten(Object, OperationContext)

Traverses object graph, flattens and converts all nested (and not nested) properties to EntityProperties, stores them in the property dictionary. The keys are constructed by appending the names of the properties visited during pre-order depth first traversal from root to each end node property delimited by '_'. Allows complex objects to be stored in persistent storage systems or passed between web services in a generic way.

public static System.Collections.Generic.Dictionary<string,Microsoft.Azure.Cosmos.Table.EntityProperty> Flatten (object root, Microsoft.Azure.Cosmos.Table.OperationContext operationContext);
static member Flatten : obj * Microsoft.Azure.Cosmos.Table.OperationContext -> System.Collections.Generic.Dictionary<string, Microsoft.Azure.Cosmos.Table.EntityProperty>
Public Shared Function Flatten (root As Object, operationContext As OperationContext) As Dictionary(Of String, EntityProperty)

Parameters

root
Object

The object to flatten and convert.

operationContext
OperationContext

An OperationContext object that represents the context for the current operation.

Returns

The result containing IDictionary<TKey,TValue> of EntityProperty objects for all properties of the flattened root object.

Applies to

Flatten(Object, EntityPropertyConverterOptions, OperationContext)

Traverses object graph, flattens and converts all nested (and not nested) properties to EntityProperties, stores them in the property dictionary. The keys are constructed by appending the names of the properties visited during pre-order depth first traversal from root to each end node property delimited by '_'. Allows complex objects to be stored in persistent storage systems or passed between web services in a generic way.

public static System.Collections.Generic.Dictionary<string,Microsoft.Azure.Cosmos.Table.EntityProperty> Flatten (object root, Microsoft.Azure.Cosmos.Table.EntityPropertyConverterOptions entityPropertyConverterOptions, Microsoft.Azure.Cosmos.Table.OperationContext operationContext);
static member Flatten : obj * Microsoft.Azure.Cosmos.Table.EntityPropertyConverterOptions * Microsoft.Azure.Cosmos.Table.OperationContext -> System.Collections.Generic.Dictionary<string, Microsoft.Azure.Cosmos.Table.EntityProperty>
Public Shared Function Flatten (root As Object, entityPropertyConverterOptions As EntityPropertyConverterOptions, operationContext As OperationContext) As Dictionary(Of String, EntityProperty)

Parameters

root
Object

The object to flatten and convert.

entityPropertyConverterOptions
EntityPropertyConverterOptions

A EntityPropertyConverterOptions object that specifies options for the entity property conversion.

operationContext
OperationContext

An OperationContext object that represents the context for the current operation.

Returns

The result containing IDictionary<TKey,TValue> of EntityProperty objects for all properties of the flattened root object.

Applies to