Class EPiServerDataStoreSection
Class representing the episerver.dataStore configuration element
Inheritance
System.Object
EPiServerDataStoreSection
Namespace: EPiServer.Data.Configuration
Assembly: EPiServer.Data.dll
Version: 7.19.2Syntax
public class EPiServerDataStoreSection : ConfigurationSection
Constructors
EPiServerDataStoreSection()
Declaration
public EPiServerDataStoreSection()
Properties
ConfigurationInstance
Gets and sets the current configuration to use
Declaration
public static Configuration ConfigurationInstance { get; set; }
Property Value
Type | Description |
---|---|
System.Configuration.Configuration |
DataSettings
Gets the data settings element.
Declaration
public SiteDataSettingsElement DataSettings { get; }
Property Value
Type | Description |
---|---|
SiteDataSettingsElement | The data settings. |
DataStoreSettings
Gets the dataStore element
Declaration
public DataStoreElement DataStoreSettings { get; }
Property Value
Type | Description |
---|---|
DataStoreElement |
EntitySettings
Gets the entity element
Declaration
public EntityElement EntitySettings { get; }
Property Value
Type | Description |
---|---|
EntityElement |
Instance
Gets the instance of the EPiServerDataStoreSection section
Declaration
public static EPiServerDataStoreSection Instance { get; }
Property Value
Type | Description |
---|---|
EPiServerDataStoreSection |
Remarks
Returns null if the section isn't found
SiteDataSettings
Gets the siteDataSettings element
Declaration
[Obsolete("Use dataSettings instead.")]
public SiteDataSettingsCollection SiteDataSettings { get; }
Property Value
Type | Description |
---|---|
SiteDataSettingsCollection |
Methods
GetCurrentSiteDataSettings()
Gets the data settings.
Declaration
public SiteDataSettingsElement GetCurrentSiteDataSettings()
Returns
Type | Description |
---|---|
SiteDataSettingsElement | The data settings |
InitializeAllSettings(Configuration, Boolean)
Initialize the section from the config
passed
Declaration
public static void InitializeAllSettings(Configuration config, bool modifyConnectionStringNameForTest)
Parameters
Type | Name | Description |
---|---|---|
System.Configuration.Configuration | config | A System.Configuration.Configuration |
System.Boolean | modifyConnectionStringNameForTest | Pass true if the connection string name should be modified when running in test mode |
InitializeDefault()
Declaration
protected override void InitializeDefault()
InitializeWithDefaults(String)
Declaration
public static void InitializeWithDefaults(string connectionStringName)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionStringName |