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) |
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
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
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기