C# Class MvcInstaller.ConfigurationFactory

You can manipulate any configuration section in this class.
Inheritance: IConfigurationFactory
Mostra file Open project: kahanu/MvcInstaller Class Usage Examples

Public Methods

Method Description
ConfigurationFactory ( ) : System.Configuration
ConfigurationFactory ( IConnectionStringComponent component ) : System.Configuration
Execute ( InstallerConfig config, Configuration configSection ) : void

Private Methods

Method Description
UpdateConnectionString ( InstallerConfig config, Configuration configSection ) : void

Update the web.config connection strings. If the EntityFramework is being used, two connection strings will be created. One for the EntityFramework, and another for the Membership system.

UpdateMembershipProviders ( Configuration configSection, InstallerConfig config ) : void

Update the web.config membership related config sections, membership, profile, and roleManager. And also set the roleManager Enabled property to true.

Method Details

ConfigurationFactory() public method

public ConfigurationFactory ( ) : System.Configuration
return System.Configuration

ConfigurationFactory() public method

public ConfigurationFactory ( IConnectionStringComponent component ) : System.Configuration
component IConnectionStringComponent
return System.Configuration

Execute() public method

public Execute ( InstallerConfig config, Configuration configSection ) : void
config MvcInstaller.Settings.InstallerConfig
configSection System.Configuration.Configuration
return void