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.WindowsAzure.Storage.Table.TableEntity
- T
The type of object to read and write to Azure Table Storage, it can be a class or a struct.
- Inheritance
Inherited Members
Microsoft.WindowsAzure.Storage.Table.TableEntity
Constructors
| TableEntityAdapter<T>() |
Initializes a new instance of the TableEntityAdapter<T> class. |
| TableEntityAdapter<T>(T) |
Initializes a new instance of the TableEntityAdapter<T> class with the specified object. |
| TableEntityAdapter<T>(T, String, String) |
Initializes a new instance of the TableEntityAdapter<T> class with the specified object, partition key and row key. |
Properties
| OriginalEntity |
The original entity that is read and written to azure table storage. |
Methods
| 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) |
Serializes the IDictionary<TKey, TValue> of property names mapped to EntityProperty data values from the OriginalEntity property. |
Extension Methods
| IsDefined(Object) | |
| IsNull(Object) | |
| IsPrimitive(Object) |