public SQLiteDescriptor ( |
||
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 SQLiteDescriptor(Config config, string component,
ConnectionInfoDecryptionDelegate decryptionDelegate)
{
SQLiteConnectionStringBuilder builder = new SQLiteConnectionStringBuilder();
builder.Pooling = false;
_usePooling = false;
builder.DataSource = _databasePath = config.GetParameterWithSubstitution(component, "Database", true);
// We don't currently support passwords, so the clean conn str is the same
// as the real one.
_cleanConnStr = builder.ToString();
_connectionStr = builder.ToString();
}
SQLiteDescriptor::SQLiteDescriptor ( string databasePath ) : System |