Dela via


StorageData Class

Definition

Important

This API is not CLS-compliant.

An abstract implementation of the ITableData interface required by TableController<TData> as well as an implementation of TableEntity required by Azure Table Storage. It provides a default mapping from the TableEntity properties including partition key, row key, and timestamp into the corresponding properties on ITableData.

[System.CLSCompliant(false)]
public abstract class StorageData : Microsoft.WindowsAzure.Storage.Table.TableEntity, Microsoft.WindowsAzure.Mobile.Service.Tables.ITableData
[<System.CLSCompliant(false)>]
type StorageData = class
    inherit TableEntity
    interface ITableData
Public MustInherit Class StorageData
Inherits TableEntity
Implements ITableData
Inheritance
StorageData
Attributes
Implements

Constructors

StorageData()

Initializes a new instance of the StorageData class.

StorageData(String, String)

Initializes a new instance of the StorageData class with a given partitionKey and rowKey.

Properties

CreatedAt
Deleted

Indicates whether this entity has been marked for deletion.

ETag (Inherited from TableEntity)
Id

The id is composed by combining the PartitionKey and the RowKey using a CompositeTableKey instance which serializes the partition key and row key as a comma separated tuple of values. By setting this property, the partition key and row key will also get updated. As such the id property itself is not mapped to the actual storage table as it strictly contains the same information provided by the partition key and row key.

PartitionKey (Inherited from TableEntity)
RowKey (Inherited from TableEntity)
Timestamp (Inherited from TableEntity)
UpdatedAt

This property timestamp at which the entity was created. By setting this property, the Timestamp property is updated as well. The property is not mapped to the actual storage table as the information is maintained by the timestamp property.

Version

The version is a byte[] representation of the Etag property which is maintained by the Azure storage SDK. The etag represents the version of this entity as obtained from the server and by setting this property the etag is also updated. As for the id property, this property is not mapped to the actual storage table as its information is provided in the etag.

Methods

ReadEntity(IDictionary<String,EntityProperty>, OperationContext) (Inherited from TableEntity)
WriteEntity(OperationContext) (Inherited from TableEntity)

Applies to