StorageData Class

 

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.

This API is not CLS-compliant.

Namespace:   Microsoft.WindowsAzure.Mobile.Service
Assembly:  Microsoft.WindowsAzure.Mobile.Service.Storage (in Microsoft.WindowsAzure.Mobile.Service.Storage.dll)

Inheritance Hierarchy

System.Object
  Microsoft.WindowsAzure.Storage.Table.TableEntity
    Microsoft.WindowsAzure.Mobile.Service.StorageData

Syntax

[CLSCompliantAttribute(false)]
public abstract class StorageData : TableEntity, ITableData
[CLSCompliantAttribute(false)]
public ref class StorageData abstract : TableEntity, ITableData
[<AbstractClass>]
[<CLSCompliantAttribute(false)>]
type StorageData = 
    class
        inherit TableEntity
        interface ITableData
    end
<CLSCompliantAttribute(False)>
Public MustInherit Class StorageData
    Inherits TableEntity
    Implements ITableData

Constructors

Name Description
System_CAPS_protmethod StorageData()

Initializes a new instance of the StorageData class.

System_CAPS_protmethod StorageData(String, String)

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

Properties

Name Description
System_CAPS_pubproperty CreatedAt

System_CAPS_pubproperty Deleted

Indicates whether this entity has been marked for deletion.

System_CAPS_pubproperty ETag

(Inherited from TableEntity.)

System_CAPS_pubproperty Id

The id is composed by combining the M:PartitionKey and the M: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.

System_CAPS_pubproperty PartitionKey

(Inherited from TableEntity.)

System_CAPS_pubproperty RowKey

(Inherited from TableEntity.)

System_CAPS_pubproperty Timestamp

(Inherited from TableEntity.)

System_CAPS_pubproperty UpdatedAt

This property timestamp at which the entity was created. By setting this property, the M: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.

System_CAPS_pubproperty Version

The version is a T:byte[] representation of the M: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

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

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

(Inherited from TableEntity.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

System_CAPS_pubmethod WriteEntity(OperationContext)

(Inherited from TableEntity.)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.WindowsAzure.Mobile.Service Namespace

Return to top