Azavea.Open.DAO.OleDb.OleDbDescriptor.OleDbDescriptor C# (CSharp) 메소드

OleDbDescriptor() 공개 메소드

This constructor reads all the appropriate values from a config file.
public OleDbDescriptor ( 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.
리턴 System
        public OleDbDescriptor(Config config, string component,
            ConnectionInfoDecryptionDelegate decryptionDelegate)
            : this(GetTypeFromConfig(config, component),
                   config.GetParameter(component, "Provider", null),
                   config.GetParameter(component, "Server", null),
                   config.GetParameterWithSubstitution(component, "Database", true, null),
                   config.GetParameter(component, "User", null),
                   GetDecryptedConfigParameter(config, component, "Password", decryptionDelegate),
                   config.GetParameterAsInt(component, "Connect_Timeout", null))
        {
        }

Same methods

OleDbDescriptor::OleDbDescriptor ( DatabaseType type, string server, string database, string user, string password, int timeout ) : System
OleDbDescriptor::OleDbDescriptor ( DatabaseType type, string provider, string server, string database, string user, string password, int timeout ) : System
OleDbDescriptor::OleDbDescriptor ( string provider, string server, string database, string user, string password, int timeout ) : System