Class DataStoreProvider
Base class for data store providers
Inheritance
System.Object
DataStoreProvider
Assembly: EPiServer.Data.dll
Version: 12.0.3
Syntax
public abstract class DataStoreProvider : Object
Constructors
DataStoreProvider()
Declaration
protected DataStoreProvider()
Properties
Name
Gets the friendly name used to refer to the provider
Declaration
public virtual string Name { get; set; }
Property Value
| Type |
Description |
| System.String |
|
Declaration
public abstract TableInformation ReferenceTableInformation { get; }
Property Value
Methods
CanMoveDataBetweenProperties(InlinePropertyMap, InlinePropertyMap)
Declaration
public abstract bool CanMoveDataBetweenProperties(InlinePropertyMap fromProperty, InlinePropertyMap toProperty)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
ConvertStoreNameToInternal(String)
Convert the store name to that used internally by the provider
Declaration
public virtual string ConvertStoreNameToInternal(string storeName)
Parameters
| Type |
Name |
Description |
| System.String |
storeName |
The name of the store to convert
|
Returns
| Type |
Description |
| System.String |
A System.String
|
Delete(Identity)
Declaration
public abstract void Delete(Identity id)
Parameters
DeleteAll(String)
Declaration
public abstract void DeleteAll(string storeName)
Parameters
| Type |
Name |
Description |
| System.String |
storeName |
|
DeleteStoreDefinition(String, Boolean)
Declaration
public abstract void DeleteStoreDefinition(string storeName, bool deleteObjects)
Parameters
| Type |
Name |
Description |
| System.String |
storeName |
|
| System.Boolean |
deleteObjects |
|
ExecuteList<T>(Query)
Declaration
protected abstract IList<T> ExecuteList<T>(Query query)
Parameters
| Type |
Name |
Description |
| Query |
query |
|
Returns
| Type |
Description |
| System.Collections.Generic.IList<T> |
|
Type Parameters
ExecuteLocked(String, Action)
Executes an action with acuiring a lock.
Declaration
public abstract void ExecuteLocked(string resourceName, Action action)
Parameters
| Type |
Name |
Description |
| System.String |
resourceName |
Name of the resource.
|
| System.Action |
action |
The action.
|
ExecuteScalar<T>(Query)
Declaration
protected abstract T ExecuteScalar<T>(Query query)
Parameters
| Type |
Name |
Description |
| Query |
query |
|
Returns
Type Parameters
ExecuteTransaction(Action)
Execute an action in a transactional manner.
Declaration
public abstract void ExecuteTransaction(Action action)
Parameters
| Type |
Name |
Description |
| System.Action |
action |
The System.Action delegate to execute
|
Find<T>(ProviderCallContext, IDictionary<String, Object>, DynamicDataStore)
Declaration
public abstract IEnumerable<T> Find<T>(ProviderCallContext context, IDictionary<string, object> parameters, DynamicDataStore store)
Parameters
Returns
| Type |
Description |
| System.Collections.Generic.IEnumerable<T> |
|
Type Parameters
GetQueryObject<T>(DynamicDataStore, LoadAsObjectType)
Declaration
protected abstract Query<T> GetQueryObject<T>(DynamicDataStore store, LoadAsObjectType loadObjectAs)
Parameters
Returns
| Type |
Description |
| Query<T> |
|
Type Parameters
GetStoreNameForItem(Identity, String)
Declaration
public abstract string GetStoreNameForItem(Identity id, string tableName)
Parameters
| Type |
Name |
Description |
| Identity |
id |
|
| System.String |
tableName |
|
Returns
| Type |
Description |
| System.String |
|
GetStoreNames()
Declaration
public abstract IEnumerable<string> GetStoreNames()
Returns
| Type |
Description |
| System.Collections.Generic.IEnumerable<System.String> |
|
GetStoreViewName(String)
Get the database specific view name for a store
Declaration
public abstract string GetStoreViewName(string storeName)
Parameters
| Type |
Name |
Description |
| System.String |
storeName |
The name of the store the item will be saved to
|
Returns
| Type |
Description |
| System.String |
A System.String
|
Declaration
public abstract TableInformation GetTableInformation(string tableName)
Parameters
| Type |
Name |
Description |
| System.String |
tableName |
|
Returns
GetValueOverflowCount(String, InlinePropertyMap, InlinePropertyMap, Object, Object)
Declaration
public abstract int GetValueOverflowCount(string storeName, InlinePropertyMap propertyMap, InlinePropertyMap oldPropertyMap, object minValue, object maxValue)
Parameters
Returns
| Type |
Description |
| System.Int32 |
|
Initialize(String, NameValueCollection)
Initializes the provider.
Declaration
public virtual void Initialize(string name, NameValueCollection config)
Parameters
| Type |
Name |
Description |
| System.String |
name |
The friendly name of the provider
|
| System.Collections.Specialized.NameValueCollection |
config |
A collection of the name/value pairs representing the provider-specific attributes
specified in the configuration for this provider.
|
IsProviderSpecificException(Exception)
Determines if an exception is specific to the data provider or a standard .NET exception
Declaration
public abstract bool IsProviderSpecificException(Exception exception)
Parameters
| Type |
Name |
Description |
| System.Exception |
exception |
The exception to check
|
Returns
| Type |
Description |
| System.Boolean |
true if the exception is data provider specific, otherwise false
|
Load(ProviderCallContext)
Declaration
public abstract object Load(ProviderCallContext context)
Parameters
Returns
| Type |
Description |
| System.Object |
|
LoadStoreDefinition(String)
Declaration
public abstract StoreDefinition LoadStoreDefinition(string storeName)
Parameters
| Type |
Name |
Description |
| System.String |
storeName |
|
Returns
Save(ProviderCallContext)
Declaration
public abstract void Save(ProviderCallContext context)
Parameters
SaveStoreDefinition(StoreDefinition)
Declaration
public abstract void SaveStoreDefinition(StoreDefinition storeDefinition)
Parameters
UpdateReferencesPropertyName(String, String, String, String)
Update the property names for the references
Declaration
public abstract void UpdateReferencesPropertyName(string storeName, string tableName, string oldPropertyName, string newPropertyName)
Parameters
| Type |
Name |
Description |
| System.String |
storeName |
Name of the store.
|
| System.String |
tableName |
Name of the CustomBigtable
|
| System.String |
oldPropertyName |
The old Name of the Property
|
| System.String |
newPropertyName |
The new Name of the Property
|
Extension Methods