Property | Type | Description | |
---|---|---|---|
ConnectTimeout | int? | ||
Database | string | ||
Password | string | ||
Provider | string | ||
Server | string | ||
Type | DatabaseType | ||
User | string |
Property | Type | Description | |
---|---|---|---|
_cleanConnStr | string | ||
_connectionStr | string |
Method | Description | |
---|---|---|
BeginTransaction ( ) : ITransaction |
Begins the transaction. Returns a NEW ConnectionDescriptor that you should use for operations you wish to be part of the transaction. NOTE: You MUST call Commit or Rollback on the returned ITransaction when you are done.
|
|
CanUseAliasInOrderClause ( ) : bool | ||
CaseInsensitiveLikeOperator ( ) : string | ||
ColumnAliasPrefix ( ) : string | ||
ColumnAliasSuffix ( ) : string | ||
CreateDataAccessLayer ( ) : IDaLayer |
Returns the appropriate data access layer for this connection. The default implementation returns a normal SQL data access layer, but this may be overridden in particular DB connection descriptors.
|
|
CreateNewAdapter ( IDbCommand cmd ) : |
||
CreateNewConnection ( ) : |
||
FullOuterJoinKeyword ( ) : string | ||
GuessTypeFromProvider ( string provider ) : DatabaseType |
Attempts to parse the provider string and determine what database type we're connecting to.
|
|
HasCaseInsensitiveLikeOperator ( ) : bool | ||
LowerCaseFunction ( ) : string | ||
MakeBitwiseAndClause ( string columnName ) : |
||
MakeConnectionString ( DatabaseType providerType, string server, string database, string user, string password, int connectionTimeout ) : string |
Assembles a OLEDB connection string that can be used to get a database connection. All the parameters are optional for the purposes of this method, although obviously it would be possible to create a useless connection string if you leave out important parameters.
|
|
MakeConnectionString ( string provider, string server, string database, string user, string password, int connectionTimeout ) : string |
Assembles a OLEDB connection string that can be used to get a database connection. All the parameters are optional for the purposes of this method, although obviously it would be possible to create a useless connection string if you leave out important parameters.
|
|
MakeCreateIndexCommand ( string indexName, bool isUnique, string tableName, IEnumerable |
||
MakeModulusClause ( string fieldName ) : |
||
MakeSequenceValueQuery ( string sequenceName ) : string | ||
NeedAsForColumnAliases ( ) : bool | ||
NeedToAliasColumns ( ) : bool | ||
OleDbDescriptor ( |
This constructor reads all the appropriate values from a config file.
|
|
OleDbDescriptor ( DatabaseType type, string server, string database, string user, string password, int timeout ) : System |
Constructor that lets you pass everything as parameters rather than requiring a config.
|
|
OleDbDescriptor ( DatabaseType type, string provider, string server, string database, string user, string password, int timeout ) : System |
Constructor that lets you pass everything as parameters rather than requiring a config.
|
|
OleDbDescriptor ( string provider, string server, string database, string user, string password, int timeout ) : System |
Constructor that lets you pass everything as parameters rather than requiring a config.
|
|
SetParametersOnCommand ( IDbCommand cmd, IEnumerable parameters ) : void | ||
SupportsTruncate ( ) : bool | ||
TableAliasPrefix ( ) : string | ||
TableAliasSuffix ( ) : string | ||
ToCleanString ( ) : string | ||
ToCompleteString ( ) : string | ||
UsePooling ( ) : bool |
Method | Description | |
---|---|---|
GetTypeFromConfig ( |
Gets the type based on a couple optional parameters in the DB config file.
|
public CaseInsensitiveLikeOperator ( ) : string | ||
return | string |
public CreateNewAdapter ( IDbCommand cmd ) : |
||
cmd | IDbCommand | |
return |
public CreateNewConnection ( ) : |
||
return |
public static GuessTypeFromProvider ( string provider ) : DatabaseType | ||
provider | string | OleDB "provider" piece of the connection string. |
return | DatabaseType |
public HasCaseInsensitiveLikeOperator ( ) : bool | ||
return | bool |
public MakeBitwiseAndClause ( string columnName ) : |
||
columnName | string | |
return |
public static MakeConnectionString ( DatabaseType providerType, string server, string database, string user, string password, int connectionTimeout ) : string | ||
providerType | DatabaseType | Database type, will be used to determine provider string. |
server | string | Server name that is hosting the database |
database | string | Database name, if necessary to specify |
user | string | User name to use when accessing the db |
password | string | Password for above user. |
connectionTimeout | int | How long to wait before giving up on a command, in seconds. |
return | string |
public static MakeConnectionString ( string provider, string server, string database, string user, string password, int connectionTimeout ) : string | ||
provider | string | Database driver/type/something, for example "SQLOLEDB" |
server | string | Server name that is hosting the database |
database | string | Database name, if necessary to specify |
user | string | User name to use when accessing the db |
password | string | Password for above user. |
connectionTimeout | int | How long to wait before giving up on a command, in seconds. |
return | string |
public MakeCreateIndexCommand ( string indexName, bool isUnique, string tableName, IEnumerable |
||
indexName | string | |
isUnique | bool | |
tableName | string | |
columnNames | IEnumerable |
|
return | string |
public MakeModulusClause ( string fieldName ) : |
||
fieldName | string | |
return |
public MakeSequenceValueQuery ( string sequenceName ) : string | ||
sequenceName | string | |
return | string |
public OleDbDescriptor ( |
||
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 OleDbDescriptor ( DatabaseType type, string server, string database, string user, string password, int timeout ) : System | ||
type | DatabaseType | Type of database to connect to. May not be null. This parameter /// will be used to determine what OleDb provider to use. |
server | string | Server (or in the case of access, .mdb file) May be null, but you /// probably won't be able to connect to anything. |
database | string | database name on that server, if applicable. May be null. |
user | string | Database user name, may be null. |
password | string | Password for the user. May be null. |
timeout | int | Connection timeout, in seconds. May be null. |
return | System |
public OleDbDescriptor ( DatabaseType type, string provider, string server, string database, string user, string password, int timeout ) : System | ||
type | DatabaseType | Type of database to connect to. May not be null. This parameter /// will be used to determine what OleDb provider to use. |
provider | string | Database provider string. May be null. If null, we will use a /// provider value based on the type, if not null, we will use this /// provider. |
server | string | Server (or in the case of access, .mdb file) May be null, but you /// probably won't be able to connect to anything. |
database | string | database name on that server, if applicable. May be null. |
user | string | Database user name, may be null. |
password | string | Password for the user. May be null. |
timeout | int | Connection timeout, in seconds. May be null. |
return | System |
public OleDbDescriptor ( string provider, string server, string database, string user, string password, int timeout ) : System | ||
provider | string | Database provider string. May not be null. |
server | string | Server (or in the case of access, .mdb file) May be null, but you /// probably won't be able to connect to anything. |
database | string | database name on that server, if applicable. May be null. |
user | string | Database user name, may be null. |
password | string | Password for the user. May be null. |
timeout | int | Connection timeout, in seconds. May be null. |
return | System |
public SetParametersOnCommand ( IDbCommand cmd, IEnumerable parameters ) : void | ||
cmd | IDbCommand | |
parameters | IEnumerable | |
return | void |