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 | |
---|---|---|
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
Name | Description | |
---|---|---|
CreatedAt | ||
Deleted | Indicates whether this entity has been marked for deletion. |
|
ETag | (Inherited from TableEntity.) |
|
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. |
|
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 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. |
|
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 | |
---|---|---|
Equals(Object) | (Inherited from Object.) |
|
Finalize() | (Inherited from Object.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
MemberwiseClone() | (Inherited from Object.) |
|
ReadEntity(IDictionary<String, EntityProperty>, OperationContext) | (Inherited from TableEntity.) |
|
ToString() | (Inherited from Object.) |
|
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