Reads and Writes configuration settings in .NET config files and sections. Allows reading and writing to default or external files and specification of the configuration section that settings are applied to.
This implementation doesn't support Read and Write operation that don't return a string value. Only Read(string) and WriteAsString() should be used to read and write string values.
Westwind.Utilities.Configuration.ConfigurationProviderBase<TAppConfiguration>
Westwind.Utilities.Configuration.SqlServerConfigurationProvider<TAppConfiguration>
public class SqlServerConfigurationProvider<TAppConfiguration> : ConfigurationProviderBase<TAppConfiguration>
Class Members
Member | Description | |
---|---|---|
Constructor |
||
Read |
Reads configuration data from Sql Server into an existing instance updating its fields. public virtual bool Read(AppConfiguration config) |
|
Read<T> |
Reads configuration data into a new instance from SQL Server that is returned. public virtual T Read |
|
Write |
public virtual bool Write(AppConfiguration config) |
|
ConnectionString |
The raw SQL connection string or connectionstrings name for the database connection. | |
Key |
The key of the record into which the config data is written. Defaults to 1. | |
ProviderName |
The data provider used to access the database | |
Tablename |
Table in the database that holds configuration data Table must have ID(int) and ConfigData (nText) fields |
Requirements
Namespace: Westwind.Utilities.ConfigurationAssembly: westwind.utilities.dll
© West Wind Technologies, 1996-2016 • Updated: 12/12/15
Comment or report problem with topic