Creating a data model and context for an entity
The Windows Azure Storage Client library uses WCF Data Services to invoke table operations in the Windows Azure Storage Services REST API. The library has methods providing functionality specific to the Windows Azure Table Service, such as retry functionality allowing methods to be retried automatically in the event of failure and continuation functionality supporting server-side paging.
In the Storage Client library, instances of a model class represent entities of a table. When saving an instance to a table, the Storage Client library creates a property in the entity for each public property of the instance. The model class must contain the Primary Key properties for the entity: PartitionKey
and RowKey
. An entity can have no more than 252 user-defined properties. Furthermore, if it is used to store query results, then the model class must have a default constructor taking no parameters. The Storage Client library provides the TableServiceEntity...