Interface IDataStoreProvider
Provides the GetDataStore(String, IContext) method for getting a data store by name.
Namespace: Kephas.Data.Store
Assembly: Kephas.Data.dll
Syntax
[SingletonAppServiceContract]
public interface IDataStoreProvider
Methods
| Improve this Doc View SourceGetDataStore(String, IContext)
Gets data store with the provided name.
Declaration
IDataStore GetDataStore(string dataStoreName, IContext context = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | dataStoreName | Name of the data store. |
| IContext | context | Optional. The context. |
Returns
| Type | Description |
|---|---|
| IDataStore | The data store. |
GetDataStoreName(Type, IContext)
Gets the data store name for the provided entity type.
Declaration
string GetDataStoreName(Type entityType, IContext context = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Type | entityType | Type of the entity. |
| IContext | context | Optional. The context. |
Returns
| Type | Description |
|---|---|
| System.String | The data store name. |