Azavea.Open.DAO.SQLServer.SQLServerDescriptor.SQLServerDescriptor C# (CSharp) Method

SQLServerDescriptor() public method

This constructor reads all the appropriate values from a config file.
public SQLServerDescriptor ( Config config, string component, ConnectionInfoDecryptionDelegate decryptionDelegate ) : System
config Azavea.Open.Common.Config Config to get params from.
component string Section of the config XML to look in for db params.
decryptionDelegate ConnectionInfoDecryptionDelegate Delegate to call to decrypt password fields. /// May be null if passwords are in plain text.
return System
        public SQLServerDescriptor(Config config, string component,
            ConnectionInfoDecryptionDelegate decryptionDelegate)
            : this(config.GetParameter(component, "Server", null),
                   config.GetParameter(component, "Database", null),
                   config.GetParameter(component, "User", null),
                   GetDecryptedConfigParameter(config, component, "Password", decryptionDelegate))
        {
        }

Same methods

SQLServerDescriptor::SQLServerDescriptor ( string server, string database, string user, string password ) : System