TableEntityAdapter<T> Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.Cosmos.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
Constructors
TableEntityAdapter<T>() |
Initializes a new instance of the TableEntityAdapter<T> class. |
TableEntityAdapter<T>(T, String, String) |
Initializes a new instance of the TableEntityAdapter<T> class with the specified object, partition key and row key. |
TableEntityAdapter<T>(T) |
Initializes a new instance of the TableEntityAdapter<T> class with the specified object. |
Properties
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 |
The original entity that is read and written to azure table storage. |
PartitionKey |
Gets or sets the entity's partition key. (Inherited from TableEntity) |
RowKey |
Gets or sets the entity's row key. (Inherited from TableEntity) |
Timestamp |
Gets or sets the entity's timestamp. (Inherited from TableEntity) |
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. |
Applies to
Azure SDK for .NET