Property | Type | Description | |
---|---|---|---|
_log | log4net.ILog |
Method | Description | |
---|---|---|
CreateDataAccessLayer ( ) : IDaLayer |
Returns the appropriate data access layer for this connection. If this connection is capable of performing "DDL" operations (creating / deleting datastores, indexes, etc) this IDaLayer will also implement IDaDdlLayer.
|
|
Equals ( object obj ) : bool |
The default implementation does a comparison based on ToCompleteString. If this is inaccurate or inefficient for a given implementation, this method should be overridden.
|
|
GetHashCode ( ) : int |
The default implementation uses the hashcode of ToCompleteString. If this is inaccurate or inefficient for a given implementation, this method should be overridden.
|
|
LoadFromConfig ( |
This is a factory method, that will load the appropriate type of connection descriptor using the given config. It first searches for config item(s) called "ConnectionConfigSection" and/or "ConnectionConfig". (ConnectionConfig should be an "app name" for a config, not a file name). If present, it will use those to load from another section in this or another config file. This allows more dynamic install-time configuration of DB connections. You may daisy-chain the configuration if you wish. Once in the connection configuration section, it will first search for the "DescriptorClass" config item, and use that class if specified. If not, defaults to an OleDbDescriptor (which means it should be backwards compatible for all our existing config files).
|
|
LoadFromConfig ( |
This is a factory method, that will load the appropriate type of connection descriptor using the given config. It first searches for config item(s) called "ConnectionConfigSection" and/or "ConnectionConfig". (ConnectionConfig should be an "app name" for a config, not a file name). If present, it will use those to load from another section in this or another config file. This allows more dynamic install-time configuration of DB connections. You may daisy-chain the configuration if you wish. Once in the connection configuration section, it will first search for the "DescriptorClass" config item, and use that class if specified. If not, defaults to an OleDbDescriptor (which means it should be backwards compatible for all our existing config files).
|
|
ToCleanString ( ) : string |
This method is similar to ToString, except it will not contain any "sensitive" information, I.E. passwords. This method is intended to be used for logging or error handling, where we do not want to display passwords to (potentially) just anyone, but we do want to indicate what DB connection we were using.
|
|
ToCompleteString ( ) : string |
Since we often need to represent database connection info as strings, child classes must implement ToCompleteString() such that this.Equals(that) and this.ToCompleteString().Equals(that.ToCompleteString()) will behave the same.
|
|
ToString ( ) : string |
For convenience, this returns ToCleanString().
|
Method | Description | |
---|---|---|
GetDecryptedConfigParameter ( |
This method is provided for convenience. If decryptionDelegate is not null, will use it to decrypt whatever value is in the config parameter.
|
public abstract CreateDataAccessLayer ( ) : IDaLayer | ||
return | IDaLayer |
public Equals ( object obj ) : bool | ||
obj | object | Other descriptor to compare with. |
return | bool |
protected static GetDecryptedConfigParameter ( |
||
config | Config file to get the parameter from. | |
component | string | Section within the config file. |
paramName | string | Name of the paraneter within the section. |
decryptionDelegate | ConnectionInfoDecryptionDelegate | Method to call to decrypt the parameter. May be null if using plain text. |
return | string |
public static LoadFromConfig ( |
||
cfg | Config to load the descriptor info from. | |
section | string | What section of that config has the DB connection info in it. |
return | IConnectionDescriptor |
public static LoadFromConfig ( |
||
cfg | Config to load the descriptor info from. | |
section | string | What section of that config has the DB connection info in it. |
decryptionDelegate | ConnectionInfoDecryptionDelegate | Method to call to decrypt information, if the actual /// connection descriptor type supports decryption. May be null. |
return | IConnectionDescriptor |
public abstract ToCompleteString ( ) : string | ||
return | string |