Class DataStoreProvider
Base class for data store providers
Inheritance
System.Object
DataStoreProvider
Assembly: EPiServer.Data.dll
Version: 8.11.0
Syntax
public abstract class DataStoreProvider : ProviderBase
Constructors
DataStoreProvider()
Declaration
protected DataStoreProvider()
Properties
DataStoreNameValueCollection
Declaration
protected NameValueCollection DataStoreNameValueCollection { get; }
Property Value
Type |
Description |
System.Collections.Specialized.NameValueCollection |
|
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
|
CreateInstance()
Create an instance of the configured data store provider
Declaration
public static DataStoreProvider CreateInstance()
Returns
CreateInstance(ProviderSettings)
Create a new instance of a provider using the providerSettings
passed
Declaration
public static DataStoreProvider CreateInstance(ProviderSettings providerSettings)
Parameters
Type |
Name |
Description |
System.Configuration.ProviderSettings |
providerSettings |
A System.Configuration.ProviderSettings object to use when initializing the provider
|
Returns
CreateInstance(String)
Declaration
public static DataStoreProvider CreateInstance(string providerTypeName)
Parameters
Type |
Name |
Description |
System.String |
providerTypeName |
|
Returns
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 with configuration seetings.
Override this method to do any provider specific initialization.
Declaration
public override 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.
|
Exceptions
Type |
Condition |
System.ArgumentNullException |
The name of the provider is null.
|
System.ArgumentException |
The name of the provider has a length of zero.
|
System.InvalidOperationException |
An attempt is made to call System.Configuration.Provider.ProviderBase.Initialize(System.String,System.Collections.Specialized.NameValueCollection) on a provider after the provider has already been initialized.
|
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