TableEntity.Flatten Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Flatten(Object, OperationContext) |
Flattens the entity and creates a IDictionary<TKey,TValue> of EntityProperty objects for all properties of the specified entity object. |
Flatten(Object, EntityPropertyConverterOptions, OperationContext) |
Flattens the entity and creates a IDictionary<TKey,TValue> of EntityProperty objects for all properties of the specified entity object. |
Flatten(Object, OperationContext)
Flattens the entity and creates a IDictionary<TKey,TValue> of EntityProperty objects for all properties of the specified entity object.
public static System.Collections.Generic.IDictionary<string,Microsoft.Azure.Cosmos.Table.EntityProperty> Flatten (object entity, Microsoft.Azure.Cosmos.Table.OperationContext operationContext);
static member Flatten : obj * Microsoft.Azure.Cosmos.Table.OperationContext -> System.Collections.Generic.IDictionary<string, Microsoft.Azure.Cosmos.Table.EntityProperty>
Public Shared Function Flatten (entity As Object, operationContext As OperationContext) As IDictionary(Of String, EntityProperty)
Parameters
- entity
- Object
The entity object to serialize.
- operationContext
- OperationContext
An OperationContext object that represents the context for the current operation.
Returns
An IDictionary<TKey,TValue> of EntityProperty objects for all the properties of the specified entity object.
Remarks
The entity type can be a simple object with a flat structure or a complex object with complex properties and multiple levels of object hierarchy. Generic ConvertBack method can recompose the original entity using the return value of this method.
Applies to
Flatten(Object, EntityPropertyConverterOptions, OperationContext)
Flattens the entity and creates a IDictionary<TKey,TValue> of EntityProperty objects for all properties of the specified entity object.
public static System.Collections.Generic.IDictionary<string,Microsoft.Azure.Cosmos.Table.EntityProperty> Flatten (object entity, 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.IDictionary<string, Microsoft.Azure.Cosmos.Table.EntityProperty>
Public Shared Function Flatten (entity As Object, entityPropertyConverterOptions As EntityPropertyConverterOptions, operationContext As OperationContext) As IDictionary(Of String, EntityProperty)
Parameters
- entity
- Object
The entity object to serialize.
- 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
An IDictionary<TKey,TValue> of EntityProperty objects for all the properties of the specified entity object.
Remarks
The entity type can be a simple object with a flat structure or a complex object with complex properties and multiple levels of object hierarchy. Generic ConvertBack method can recompose the original entity using the return value of this method.
Applies to
Azure SDK for .NET