Interface IAzureDocumentDbDataStoreConnectionStringFactory
A factory for getting connections and database names for IDataStore<TData> access.
Namespace: Cqrs.Azure.DocumentDb.Factories
Assembly: Cqrs.Azure.DocumentDb.dll
Syntax
public interface IAzureDocumentDbDataStoreConnectionStringFactory
Methods
GetAzureDocumentDbCollectionName()
Gets the current collection name.
Declaration
string GetAzureDocumentDbCollectionName()
Returns
Type | Description |
---|---|
System.String |
GetAzureDocumentDbConnectionClient()
Gets the current
Declaration
DocumentClient GetAzureDocumentDbConnectionClient()
Returns
Type | Description |
---|---|
DocumentClient |
GetAzureDocumentDbDatabaseName()
Gets the current database name.
Declaration
string GetAzureDocumentDbDatabaseName()
Returns
Type | Description |
---|---|
System.String |
UseSingleCollectionForAllDataStores()
Indicates if a different collection should be used per IEntity/IDataStore<TData> or a single collection used for all instances of IDataStore<TData> and IDataStore<TData>. Setting this to true can become expensive as each IEntity will have it's own collection. Check the relevant SDK/pricing models.
Declaration
bool UseSingleCollectionForAllDataStores()
Returns
Type | Description |
---|---|
System.Boolean |