Class SqlServerConfigurationProvider<TAppConfiguration>

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.

System.Object
  Westwind.Utilities.Configuration.ConfigurationProviderBase<TAppConfiguration>
    Westwind.Utilities.Configuration.SqlServerConfigurationProvider<TAppConfiguration>
public class SqlServerConfigurationProvider<TAppConfiguration> : ConfigurationProviderBase<TAppConfiguration>

Class Members

MemberDescription

Constructor

Read

Reads configuration data from Sql Server into an existing instance updating its fields.

public virtual bool Read(AppConfiguration config)

Read

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.

If you need to read or write multiple different configuration records you have to change it on this provider before calling the Read()/Write() methods.

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.Configuration
Assembly: westwind.utilities.dll

© West Wind Technologies, 2019 • Updated: 06/23/19
Comment or report problem with topic