Table​Entity Class

Definition

Represents the base object type for a table entity in the Table service.

public class TableEntity : Microsoft.WindowsAzure.Storage.Table.ITableEntity
Inheritance
TableEntity
Derived
Implements

Remarks

TableEntity provides a base implementation for the ITableEntity interface that provides ReadEntity(IDictionary<String,EntityProperty>, OperationContext) and WriteEntity(OperationContext) methods that by default serialize and deserialize all properties via reflection. A table entity class may extend this class and override the ReadEntity(IDictionary<String,EntityProperty>, OperationContext) and WriteEntity(OperationContext) methods to provide customized or better performing serialization logic.

Constructors

Table​Entity()

Initializes a new instance of the TableEntity class.

Table​Entity(​String, ​String)

Initializes a new instance of the TableEntity class with the specified partition key and row key.

Properties

Disable​Compiled​Serializers

Disables the ability to dynamically generate read and write lambdas at runtime. Setting this to false will clear out the static cache shared across all type instances that derive from TableEntity.

Disable​Property​Resolver​Cache

Gets or sets the status of the property resolver cache for the TableEntity.

E​Tag

Gets or sets the entity's ETag. Set this value to '*' in order to force an overwrite to an entity as part of an update operation.

Partition​Key

Gets or sets the entity's partition key.

Row​Key

Gets or sets the entity's row key.

Timestamp

Gets or sets the entity's timestamp.

Methods

Convert​Back<​TResult>(​IDictionary<​String,​Entity​Property>, ​Operation​Context)

Returns a custom entity instance which is recomposed using the specified IDictionary<TKey, TValue> of property names to EntityProperty data typed values.

Convert​Back<​TResult>(​IDictionary<​String,​Entity​Property>, ​Entity​Property​Converter​Options, ​Operation​Context)

Returns a custom entity instance which is recomposed using the specified IDictionary<TKey, TValue> of property names to EntityProperty data typed values.

Flatten(​Object, ​Operation​Context)

Flattens the entity and creates a IDictionary<TKey, TValue> of EntityProperty objects for all properties of the specified entity object.

Flatten(​Object, ​Entity​Property​Converter​Options, ​Operation​Context)

Flattens the entity and creates a IDictionary<TKey, TValue> of EntityProperty objects for all properties of the specified entity object.

Read​Entity(​IDictionary<​String,​Entity​Property>, ​Operation​Context)

Deserializes the entity using the specified IDictionary<TKey, TValue> that maps property names to typed EntityProperty values.

Read​User​Object(​Object, ​IDictionary<​String,​Entity​Property>, ​Operation​Context)

Deserializes a custom entity instance using the specified IDictionary<TKey, TValue> of property names to EntityProperty data typed values.

Write​Entity(​Operation​Context)

Serializes the IDictionary<TKey, TValue> of property names mapped to EntityProperty data values from this TableEntity instance.

Write​User​Object(​Object, ​Operation​Context)

Create a IDictionary<TKey, TValue> of EntityProperty objects for all the properties of the specified entity object.

Extension Methods

IsDefined(Object)

Represents the base object type for a table entity in the Table service.

IsNull(Object)

Represents the base object type for a table entity in the Table service.

IsPrimitive(Object)

Represents the base object type for a table entity in the Table service.