Class EPiServerDynamicDataStore
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Class to read, write and search data in a store
Implements
Inherited Members
Namespace: EPiServer.Data.Dynamic.Internal
Assembly: EPiServer.Data.dll
Version: 11.20.7Syntax
public class EPiServerDynamicDataStore : DynamicDataStore, IDisposable
Constructors
EPiServerDynamicDataStore(StoreDefinition, DataStoreProvider)
Declaration
public EPiServerDynamicDataStore(StoreDefinition storeDefinition, DataStoreProvider dataStoreProvider)
Parameters
Type | Name | Description |
---|---|---|
StoreDefinition | storeDefinition | |
DataStoreProvider | dataStoreProvider |
Properties
DataStoreProvider
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. The store's DataStoreProvider
Declaration
public override DataStoreProvider DataStoreProvider { get; set; }
Property Value
Type | Description |
---|---|
DataStoreProvider |
Overrides
Name
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. The name of the current store
Declaration
public override string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
StoreDefinition
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. The StoreDefinition for the current store
Declaration
public override StoreDefinition StoreDefinition { get; }
Property Value
Type | Description |
---|---|
StoreDefinition |
Overrides
Methods
Delete(Identity)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Delete an item from the store
Declaration
public override void Delete(Identity id)
Parameters
Type | Name | Description |
---|---|---|
Identity | id | The Identity of the item to delete |
Overrides
Delete(Object)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Delete an item from the store
Declaration
public override void Delete(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The object to delete from the store.
The Identity of the item to delete must be able to be derived from |
Overrides
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Thrown if the Identity of |
DeleteAll()
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Delete all items in the store
Declaration
public override void DeleteAll()
Overrides
Find(IDictionary<String, Object>)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Find objects of from the store that match the conditions and return them as as the same .NET class they were saved as
Declaration
public override IEnumerable<object> Find(IDictionary<string, object> parameters)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IDictionary<System.String, System.Object> | parameters | An dictionary containing property names and values to use when finding objects |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Object> | Enumeration of System.Object |
Overrides
Find(String, Object)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Find objects of from the store that match the condition and return them as the same .NET class they were saved as
Declaration
public override IEnumerable<object> Find(string propertyName, object value)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyName | The name of the property to use when finding objects |
System.Object | value | The value of the property to match to |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Object> | Enumeration of System.Object |
Overrides
Find<TResult>(IDictionary<String, Object>)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Find objects of from the store that match the conditions and return them as as TResult instances
Declaration
public override IEnumerable<TResult> Find<TResult>(IDictionary<string, object> parameters)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IDictionary<System.String, System.Object> | parameters | An dictionary containing property names and values to use when finding objects |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<TResult> | Enumeration of TResult |
Type Parameters
Name | Description |
---|---|
TResult | The System.Type the properties for each store item will be loaded into |
Overrides
Find<TResult>(String, Object)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Find objects of from the store that match the condition and return them as TResult instances
Declaration
public override IEnumerable<TResult> Find<TResult>(string propertyName, object value)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyName | The name of the property to use when finding objects |
System.Object | value | The value of the property to match to |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<TResult> | Enumeration of TResult |
Type Parameters
Name | Description |
---|---|
TResult | The System.Type the properties for each store item will be loaded into |
Overrides
FindAsPropertyBag(IDictionary<String, Object>)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Find objects of from the store that match the conditions and return them as as PropertyBag instances
Declaration
public override IEnumerable<PropertyBag> FindAsPropertyBag(IDictionary<string, object> parameters)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IDictionary<System.String, System.Object> | parameters | An dictionary containing property names and values to use when finding objects |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<PropertyBag> | Enumeration of PropertyBag |
Overrides
FindAsPropertyBag(String, Object)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Find objects of from the store that match the condition and return them as PropertyBag instances
Declaration
public override IEnumerable<PropertyBag> FindAsPropertyBag(string propertyName, object value)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyName | The name of the property to use when finding objects |
System.Object | value | The value of the property to match to |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<PropertyBag> | Enumeration of PropertyBag |
Overrides
Items()
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. An ordered queryable to allow Linq operations to be performed against the store
Declaration
public override IOrderedQueryable<object> Items()
Returns
Type | Description |
---|---|
System.Linq.IOrderedQueryable<System.Object> |
Overrides
Items<TResult>()
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. An ordered queryable to allow Linq operations to be performed against the store
Declaration
public override IOrderedQueryable<TResult> Items<TResult>()
Returns
Type | Description |
---|---|
System.Linq.IOrderedQueryable<TResult> | An System.Linq.IOrderedQueryable of TResult |
Type Parameters
Name | Description |
---|---|
TResult | The System.Type the properties for each store item will be loaded into |
Overrides
ItemsAsPropertyBag()
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. An ordered queryable to allow Linq operations to be performed against the store
Declaration
public override IOrderedQueryable<PropertyBag> ItemsAsPropertyBag()
Returns
Type | Description |
---|---|
System.Linq.IOrderedQueryable<PropertyBag> | An System.Linq.IOrderedQueryable of PropertyBag |
Overrides
Load(Identity)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Load an instance of an object from the store as the same .NET class it was saved as
Declaration
public override object Load(Identity id)
Parameters
Type | Name | Description |
---|---|---|
Identity | id | The Identity of the item to load |
Returns
Type | Description |
---|---|
System.Object | The native object stored in the store. If the item was originally saved in a PropertyBag then a PropertyBag will be returned otherwise an instance of the System.Type originally saved will be returned. |
Overrides
Load<TResult>(Identity)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Load an instance of an object from the store into a TResult
Declaration
public override TResult Load<TResult>(Identity id)
Parameters
Type | Name | Description |
---|---|---|
Identity | id | The Identity of the item to load |
Returns
Type | Description |
---|---|
TResult | An instance of TResult |
Type Parameters
Name | Description |
---|---|
TResult | The System.Type the properties for each store item will be loaded into |
Overrides
LoadAll()
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Loads all objects from the store as the same .NET class they were saved as
Declaration
public override IEnumerable<object> LoadAll()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Object> | Enumeration of System.Object |
Overrides
LoadAll<TResult>()
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Loads all objects from the store as TResult instances
Declaration
public override IEnumerable<TResult> LoadAll<TResult>()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<TResult> | Enumeration of TResult |
Type Parameters
Name | Description |
---|---|
TResult | The System.Type the properties for each store item will be loaded into |
Overrides
LoadAllAsPropertyBag()
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Loads all objects from the store as PropertyBag instances
Declaration
public override IEnumerable<PropertyBag> LoadAllAsPropertyBag()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<PropertyBag> | Enumeration of PropertyBag |
Overrides
LoadAsPropertyBag(Identity)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Load an instance of an object from the store into a PropertyBag
Declaration
public override PropertyBag LoadAsPropertyBag(Identity id)
Parameters
Type | Name | Description |
---|---|---|
Identity | id | The identity of the item to load |
Returns
Type | Description |
---|---|
PropertyBag | An instance of PropertyBag or null if the item was not found in the store |
Overrides
Refresh()
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Refresh any cached properties from their source
Declaration
public override void Refresh()
Overrides
Save(Object)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Save value
in the store
Declaration
public override Identity Save(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The object to save |
Returns
Type | Description |
---|---|
Identity | The identity of the saved object |
Overrides
Save(Object, TypeToStoreMapper)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Save value
in the store
Declaration
public override Identity Save(object value, TypeToStoreMapper typeToStoreMapper)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The object to save |
TypeToStoreMapper | typeToStoreMapper | A delegate of type TypeToStoreMapper to use when mapping properties to stores |
Returns
Type | Description |
---|---|
Identity | The identity of the saved object |
Overrides
Save(Object, Identity)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Save value
in the store
Declaration
public override Identity Save(object value, Identity id)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The object to save |
Identity | id | The id saved the object under |
Returns
Type | Description |
---|---|
Identity | The identity of the saved object |
Overrides
Save(Object, Identity, TypeToStoreMapper)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Save value
in the store
Declaration
public override Identity Save(object value, Identity id, TypeToStoreMapper typeToStoreMapper)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The object to save |
Identity | id | The id saved the object under |
TypeToStoreMapper | typeToStoreMapper | A delegate of type TypeToStoreMapper to use when mapping properties to stores |
Returns
Type | Description |
---|---|
Identity | The identity of the saved object |
Overrides
Update<TStore>()
Declaration
public override IUpdateQueryable<TStore> Update<TStore>()
Returns
Type | Description |
---|---|
IUpdateQueryable<TStore> |
Type Parameters
Name | Description |
---|---|
TStore |