Class EPiServerDynamicDataStoreFactory
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Concrete implementation of the Dynamic
Implements
Inherited Members
Namespace: EPiServer.Data.Dynamic.Internal
Assembly: EPiServer.Data.dll
Version: 11.20.7Syntax
public class EPiServerDynamicDataStoreFactory : DynamicDataStoreFactory, IDisposable
Constructors
EPiServerDynamicDataStoreFactory(DynamicDataStoreOptions, IDataStoreProviderFactory)
Declaration
public EPiServerDynamicDataStoreFactory(DynamicDataStoreOptions dataStoreOptions, IDataStoreProviderFactory dataStoreProviderFactory)
Parameters
Type | Name | Description |
---|---|---|
Dynamic |
dataStoreOptions | |
IData |
dataStoreProviderFactory |
Methods
CreateStore(String, IDictionary<String, Type>)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Create an new store with the name given. If a store with the same name already exists then it will be returned, otherwise the store will be created.
Declaration
public override DynamicDataStore CreateStore(string storeName, IDictionary<string, Type> typeBag)
Parameters
Type | Name | Description |
---|---|---|
System. |
storeName | The name of the store to create |
System. |
typeBag | A type bag containing the names and Types of the properties that will be saved in the store |
Returns
Type | Description |
---|---|
Dynamic |
A Dynamic |
Overrides
CreateStore(String, IDictionary<String, Type>, StoreDefinitionParameters)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Create an new store with the name given. If a store with the same name already exists then it will be returned, otherwise the store will be created.
Declaration
public override DynamicDataStore CreateStore(string storeName, IDictionary<string, Type> typeBag, StoreDefinitionParameters parameters)
Parameters
Type | Name | Description |
---|---|---|
System. |
storeName | The name of the store to create |
System. |
typeBag | A type bag containing the names and Types of the properties that will be saved in the store |
Store |
parameters | Additional paramteres to use when created and mapping the store against the type bag |
Returns
Type | Description |
---|---|
Dynamic |
A Dynamic |
Overrides
CreateStore(String, Type)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Creates an new store with the name given If a store with the same name already exists then it will be returned, otherwise the store will be created.
Declaration
public override DynamicDataStore CreateStore(string storeName, Type type)
Parameters
Type | Name | Description |
---|---|---|
System. |
storeName | The name of the store |
System. |
type | The type to use to define the store |
Returns
Type | Description |
---|---|
Dynamic |
A Dynamic |
Overrides
Remarks
The type
will be reflected to create the store definition
CreateStore(String, Type, StoreDefinitionParameters)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Creates an new store with a the name given If a store with the same name already exists then it will be returned, otherwise the store will be created.
Declaration
public override DynamicDataStore CreateStore(string storeName, Type type, StoreDefinitionParameters parameters)
Parameters
Type | Name | Description |
---|---|---|
System. |
storeName | The name of the store |
System. |
type | The type to use to define the store |
Store |
parameters | Additional paramteres to use when created and mapping the store against the type T |
Returns
Type | Description |
---|---|
Dynamic |
A Dynamic |
Overrides
Remarks
The type
will be reflected to create the store definition
CreateStore(Type)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Creates an new store with a default name of type.FullName If a store with the same name already exists then it will be returned, otherwise the store will be created.
Declaration
public override DynamicDataStore CreateStore(Type type)
Parameters
Type | Name | Description |
---|---|---|
System. |
type | The type to use to define the store |
Returns
Type | Description |
---|---|
Dynamic |
A Dynamic |
Overrides
Remarks
The type
will be reflected to create the store definition
CreateStore(Type, StoreDefinitionParameters)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Creates an new store with a default name of type.FullName If a store with the same name already exists then it will be returned, otherwise the store will be created.
Declaration
public override DynamicDataStore CreateStore(Type type, StoreDefinitionParameters parameters)
Parameters
Type | Name | Description |
---|---|---|
System. |
type | The type to use to define the store |
Store |
parameters | Additional paramteres to use when created and mapping the store against the type |
Returns
Type | Description |
---|---|
Dynamic |
A Dynamic |
Overrides
Remarks
The type
will be reflected to create the store definition
DeleteStore(String, Boolean)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Delete the store
Declaration
public override void DeleteStore(string storeName, bool deleteObjects)
Parameters
Type | Name | Description |
---|---|---|
System. |
storeName | The name of the store to delete |
System. |
deleteObjects | A System. |
Overrides
DeleteStore(Type, Boolean)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Delete the store with the default name of type.FullName
Declaration
public override void DeleteStore(Type type, bool deleteObjects)
Parameters
Type | Name | Description |
---|---|---|
System. |
type | The System. |
System. |
deleteObjects | A System. |
Overrides
Dispose()
Declaration
public void Dispose()
Dispose(Boolean)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System. |
disposing |
DoRemapIfRequired(StoreDefinition, Type, StoreDefinitionParameters)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Remap the store according to the Type and StoreDefinitionParameters passed
Declaration
protected virtual StoreDefinition DoRemapIfRequired(StoreDefinition storeDefinition, Type type, StoreDefinitionParameters parameters)
Parameters
Type | Name | Description |
---|---|---|
Store |
storeDefinition | An existing store definition to check |
System. |
type | The Type to check against |
Store |
parameters | The StoreDefinitionParameters to check against |
Returns
Type | Description |
---|---|
Store |
The existing store definition if a remap was not required, otherwise a new store definition |
GetStore(String)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Get the store with the name given. If a store does not exist for the name then null is returned.
Declaration
public override DynamicDataStore GetStore(string storeName)
Parameters
Type | Name | Description |
---|---|---|
System. |
storeName | The name of the store to return |
Returns
Type | Description |
---|---|
Dynamic |
A Dynamic |
Overrides
Remarks
Use the Create
GetStore(Type)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Get the store with the default name of type.FullName. If a store does not exist for the name then null is returned.
If a store does not exist for the name then null is returned.
Declaration
public override DynamicDataStore GetStore(Type type)
Parameters
Type | Name | Description |
---|---|---|
System. |
type |
Returns
Type | Description |
---|---|
Dynamic |
A Dynamic |
Overrides
Remarks
Use the Create
GetStoreForItem(Identity, String)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Return a store for an item.
This should be used in specialized situations where the store database table is known for an item but not its actual store.
Declaration
public override DynamicDataStore GetStoreForItem(Identity itemId, string storeTableName)
Parameters
Type | Name | Description |
---|---|---|
Identity | itemId | The id of the item to return the store for |
System. |
storeTableName | The name of the store table the item is stored in |
Returns
Type | Description |
---|---|
Dynamic |
A Dynamic |
Overrides
GetStoreNameForType(Type)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Returns the store name for the type passed.
The store name resolution process for a System.
Declaration
public override string GetStoreNameForType(Type type)
Parameters
Type | Name | Description |
---|---|---|
System. |
type | The System. |
Returns
Type | Description |
---|---|
System. |
A System. |
Overrides
Initialize()
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Initialize the instance
Declaration
public void Initialize()