Class TableStorageDataStore<TData>
A TableStorageStore<TData, TCollectionItemData> that uses Azure Storage for storage.
Inheritance
Inherited Members
Namespace: Cqrs.Azure.BlobStorage.DataStores
Assembly: Cqrs.Azure.BlobStorage.dll
Syntax
public class TableStorageDataStore<TData> : TableStorageStore<EntityTableEntity<TData>, TData>, IEnumerable<EntityTableEntity<TData>>, IDataStore<TData>, IOrderedQueryable<TData>, IQueryable<TData>, IEnumerable<TData>, IOrderedQueryable, IQueryable, IEnumerable, IDisposable where TData : Entity
Type Parameters
Name | Description |
---|---|
TData | The System.Type of Microsoft.WindowsAzure.Storage.Table.TableEntity Azure Table Storage will contain. |
Constructors
TableStorageDataStore(ILogger, ITableStorageDataStoreConnectionStringFactory)
Initializes a new instance of the Cqrs.Azure.BlobStorage class using the specified container.
Declaration
public TableStorageDataStore(ILogger logger, ITableStorageDataStoreConnectionStringFactory tableStorageDataStoreConnectionStringFactory)
Parameters
Type | Name | Description |
---|---|---|
cdmdotnet.Logging.ILogger | logger | |
ITableStorageDataStoreConnectionStringFactory | tableStorageDataStoreConnectionStringFactory |
Methods
CreateTableEntity(TData)
Creates a new instance of EntityTableEntity<TEntity> populating it with the provided data
.
Declaration
protected override ITableEntity CreateTableEntity(TData data)
Parameters
Type | Name | Description |
---|---|---|
TData | data | The data to store. |
Returns
Type | Description |
---|---|
Microsoft.WindowsAzure.Storage.Table.ITableEntity |
Overrides
GetUpdatableTableEntity(TData)
Gets a Microsoft.WindowsAzure.Storage.Table.TableOperation that calls Microsoft.WindowsAzure.Storage.Table.TableOperation.Retrieve``1(System.String,System.String,System.Collections.Generic.List{System.String}) for updating.
Declaration
protected override TableOperation GetUpdatableTableEntity(TData data)
Parameters
Type | Name | Description |
---|---|---|
TData | data | The data containing the Rsn property populated. |
Returns
Type | Description |
---|---|
Microsoft.WindowsAzure.Storage.Table.TableOperation |
Overrides
GetUpdatableTableEntity(EntityTableEntity<TData>)
Gets a Microsoft.WindowsAzure.Storage.Table.TableOperation that calls Microsoft.WindowsAzure.Storage.Table.TableOperation.Retrieve``1(System.String,System.String,System.Collections.Generic.List{System.String}) for updating.
Declaration
protected override TableOperation GetUpdatableTableEntity(EntityTableEntity<TData> data)
Parameters
Type | Name | Description |
---|---|---|
EntityTableEntity<TData> | data | The EntityTableEntity<TEntity> containing the Entity containing the Rsn property populated. |
Returns
Type | Description |
---|---|
Microsoft.WindowsAzure.Storage.Table.TableOperation |
Overrides
Remove(TData)
Will mark the data
as logically (or soft).
Declaration
public override void Remove(TData data)
Parameters
Type | Name | Description |
---|---|---|
TData | data |