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.
public class SqlServerConfigurationProvider<TAppConfiguration> : ConfigurationProviderBase<TAppConfiguration>
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<T>();
|
|
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 |