Handling the WritingEntity and ReadingEntity events
The Windows Azure Table Service exposes a RESTful interface in which an entity is represented as an atom entry. In saving an instance to a table, the Windows Azure Storage Client library serializes the instance into an atom entry before invoking the appropriate REST operation on the Table service. Similarly, when retrieving an entity from a table, the Storage Client library deserializes the atom entry into an instance of the model class.
The Table service supports a limited set of simple datatypes for the properties of entities. These datatypes are listed in the Creating a data model and context for an entity recipe. By default, the Storage Client library serializes an instance of a model class by converting each public property of one of the supported datatypes into an element in an atom entry. Deserialization simply reverses this process.
The Storage Client library exposes extension points, the WritingEntity
and ReadingEntity
events, which...