TableEntityAdapter<T> TableEntityAdapter<T> TableEntityAdapter<T> Class

Definition

Adapter class to allow reading and writing objects to Azure Table Storage without inheriting from TableEntity class or implementing ITableEntity interface. The objects can be simple POCO objects or complex objects with nested complex properties.

public class TableEntityAdapter<T> : Microsoft.Azure.CosmosDB.Table.TableEntity
type TableEntityAdapter<'T> = class
    inherit TableEntity
Public Class TableEntityAdapter(Of T)
Inherits TableEntity
Type Parameters
T

The type of object to read and write to Azure Table Storage, it can be a class or a struct.

Inheritance
TableEntityAdapter<T>TableEntityAdapter<T>TableEntityAdapter<T>

Constructors

TableEntityAdapter<T>() TableEntityAdapter<T>() TableEntityAdapter<T>()

Initializes a new instance of the TableEntityAdapter<T> class.

TableEntityAdapter<T>(T) TableEntityAdapter<T>(T) TableEntityAdapter<T>(T)

Initializes a new instance of the TableEntityAdapter<T> class with the specified object.

TableEntityAdapter<T>(T, String, String) TableEntityAdapter<T>(T, String, String) TableEntityAdapter<T>(T, String, String)

Initializes a new instance of the TableEntityAdapter<T> class with the specified object, partition key and row key.

Properties

ETag ETag ETag

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.

(Inherited from TableEntity)
OriginalEntity OriginalEntity OriginalEntity

The original entity that is read and written to azure table storage.

PartitionKey PartitionKey PartitionKey

Gets or sets the entity's partition key.

(Inherited from TableEntity)
RowKey RowKey RowKey

Gets or sets the entity's row key.

(Inherited from TableEntity)
Timestamp Timestamp Timestamp

Gets or sets the entity's timestamp.

(Inherited from TableEntity)

Methods

ReadEntity(IDictionary<String,EntityProperty>, OperationContext) ReadEntity(IDictionary<String,EntityProperty>, OperationContext) ReadEntity(IDictionary<String,EntityProperty>, OperationContext)

Deserializes TableEntityAdapter<T> instance using the specified IDictionary<TKey, TValue> that maps property names of the OriginalEntity to typed EntityProperty values and stores it in the OriginalEntity property.

WriteEntity(OperationContext) WriteEntity(OperationContext) WriteEntity(OperationContext)

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

Extension Methods

IsDefined(Object) IsDefined(Object) IsDefined(Object)

Determines if a certain property is defined or not.

IsNull(Object) IsNull(Object) IsNull(Object)

Determines if a certain property is null or not.

IsPrimitive(Object) IsPrimitive(Object) IsPrimitive(Object)

Determines if a certain property is of premitive JSON type.

Applies to