Class BlobStorageDataStore<TData>
A IDataStore<TData> that uses Azure Blob Storage for storage.
Inheritance
System.Object
StorageStore<TData, Microsoft.WindowsAzure.Storage.Blob.CloudBlobContainer>
BlobStorageStore<TData>
BlobStorageDataStore<TData>
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Cqrs.Azure.BlobStorage.DataStores
Assembly: Cqrs.Azure.BlobStorage.dll
Syntax
public class BlobStorageDataStore<TData> : BlobStorageStore<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 IEntity the IDataStore<TData> will contain. |
Constructors
BlobStorageDataStore(ILogger, IBlobStorageDataStoreConnectionStringFactory)
Initializes a new instance of the Cqrs.Azure.BlobStorage class using the specified container.
Declaration
public BlobStorageDataStore(ILogger logger, IBlobStorageDataStoreConnectionStringFactory blobStorageDataStoreConnectionStringFactory)
Parameters
Type | Name | Description |
---|---|---|
cdmdotnet.Logging.ILogger | logger | |
IBlobStorageDataStoreConnectionStringFactory | blobStorageDataStoreConnectionStringFactory |
Methods
GetByFolder()
Get all TData
items in the folder.
Declaration
public virtual IEnumerable<TData> GetByFolder()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<TData> |
Remove(TData)
Will mark the data
as logically (or soft).
Declaration
public void Remove(TData data)
Parameters
Type | Name | Description |
---|---|---|
TData | data |