Book Image

Microsoft Azure Development Cookbook Second Edition

Book Image

Microsoft Azure Development Cookbook Second Edition

Overview of this book

Table of Contents (15 chapters)
Microsoft Azure Development Cookbook Second Edition
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Inserting, updating, deleting, and querying data against the Table service


The Azure Storage library uses both WCF Data Services and OData to invoke table operations in the Azure Storage Services REST API. The library has methods that provide functionality specific to the Azure Table service, such as the retry functionality that allows methods to be retried automatically in the event of failure and continuation token functionality that supports server-side paging.

In the Storage library, instances of a model class represent entities of a table. When saving an instance to a table, the Storage 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 (due to the primary key properties plus the Timestamp properties). Furthermore, if it is used to store query results, the model class must have a default constructor...