{
public sealed class ProfileSection: ConfigurationSection
{
- static ConfigurationPropertyCollection properties;
- static ConfigurationProperty autoSaveEnabledProp;
+ static ConfigurationProperty automaticSaveEnabledProp;
static ConfigurationProperty defaultProviderProp;
static ConfigurationProperty enabledProp;
static ConfigurationProperty inheritsProp;
static ConfigurationProperty propertySettingsProp;
static ConfigurationProperty providersProp;
+ static ConfigurationPropertyCollection properties;
+
static ProfileSection ()
{
- autoSaveEnabledProp = new ConfigurationProperty ("automaticSaveEnabled", typeof (bool), true);
- defaultProviderProp = new ConfigurationProperty ("defaultProviderProp", typeof (string), "AspNetSqlProfileProvider");
- inheritsProp = new ConfigurationProperty ("inheritsProps", typeof (string), "");
- propertySettingsProp = new ConfigurationProperty ("propertiesProp", typeof (RootProfilePropertySettingsCollection), null);
- providersProp = new ConfigurationProperty ("providers", typeof (ProviderSettingsCollection), null);
+ automaticSaveEnabledProp = new ConfigurationProperty ("automaticSaveEnabled", typeof (bool), true);
+ defaultProviderProp = new ConfigurationProperty ("defaultProvider", typeof (string),
+ "AspNetSqlProfileProvider");
+ enabledProp = new ConfigurationProperty ("enabled", typeof (bool), true);
+ inheritsProp = new ConfigurationProperty ("inherits", typeof (string), "");
+ propertySettingsProp = new ConfigurationProperty ("properties", typeof (RootProfilePropertySettingsCollection));
+ providersProp = new ConfigurationProperty ("providers", typeof (ProviderSettingsCollection));
properties = new ConfigurationPropertyCollection ();
- properties.Add (autoSaveEnabledProp);
+ properties.Add (automaticSaveEnabledProp);
properties.Add (defaultProviderProp);
+ properties.Add (enabledProp);
properties.Add (inheritsProp);
properties.Add (propertySettingsProp);
properties.Add (providersProp);
}
-
- public ProfileSection ()
- {
- }
-
+
[ConfigurationProperty ("automaticSaveEnabled", DefaultValue = true)]
public bool AutomaticSaveEnabled {
- get { return (bool) base [autoSaveEnabledProp]; }
- set { base [autoSaveEnabledProp] = value; }
+ get { return (bool) base [automaticSaveEnabledProp]; }
+ set { base [automaticSaveEnabledProp] = value; }
}
[ConfigurationProperty ("defaultProvider", DefaultValue = "AspNetSqlProfileProvider")]
[ConfigurationProperty ("properties")]
public RootProfilePropertySettingsCollection PropertySettings {
get {
- return (RootProfilePropertySettingsCollection) base[propertySettingsProp];
+ return (RootProfilePropertySettingsCollection) base [propertySettingsProp];
}
}
[ConfigurationProperty ("providers")]
public ProviderSettingsCollection Providers {
get {
- return (ProviderSettingsCollection) base[providersProp];
+ return (ProviderSettingsCollection) base [providersProp];
}
}
protected override ConfigurationPropertyCollection Properties {
- get {
- return properties;
- }
+ get { return properties; }
}
-
}
}