AzureTableStorage project
AzureTableStorage is a data access layer (DAL) class library that handles all create, read, update, and delete (CRUD) operations against the Azure Table Storage.
AzureTableStorageDataSource.cs
The
AzureTableStorageDataSource class is the data source towards the Azure Table Storage as specified in the
DataConnectionString role setting.
Nagling
HTTP
PUT requests smaller than 1460 bytes are inefficient with nagling turned on. The AzureProviders solution has turned nagling off by default, this setting is set in the
UseNaglingWithTable application setting key.
See
http://blogs.msdn.com/b/windowsazurestorage/archive/2010/06/25/nagle-s-algorithm-is-not-friendly-towards-small-requests.aspx for information about gained advantages by turning off nagling.
Tables
The
AzureTableStorageDataSource class contains code that creates the Azure tables, this is currently called from
~/Admin/InitApp.aspx. In early versions of AzureProviders this was done automatically, this was removed later since the overhead and expense was considered too much.
These are the Azure tables that are created by default:
- UserEntity contains ASP.NET Membership users,
- RoleEntity contains ASP.NET Membership roles,
- SessionStateEntity contains ASP.NET Membership sessions.
AzureTableStorageServiceContext.cs
The
AzureTableStorageServiceContext class is the data context that is used with the Azure Table data source. It also contains the name of the Azure tables.
RoleEntity.cs
RoleEntity is a
Microsoft.WindowsAzure.StorageClient.TableServiceEntity data entity class that is used to store ASP.NET Membership roles in the Azure Table Storage.
SessionStateEntity.cs
SessionStateEntity is a
Microsoft.WindowsAzure.StorageClient.TableServiceEntity data entity class that is used to store ASP.NET Membership sessions in the Azure Table Storage.
UserEntity.cs
UserEntity is a
Microsoft.WindowsAzure.StorageClient.TableServiceEntity data entity class that is used to store ASP.NET Membership users in the Azure Table Storage. Roles are stored in a comma seperated (CVS) string.