Property | Type | Description | |
---|---|---|---|
Database | string | ||
Password | string | ||
Server | string | ||
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.
|
|
ColumnAliasPrefix ( ) : string | ||
ColumnAliasSuffix ( ) : string | ||
CreateDataAccessLayer ( ) : IDaLayer | ||
CreateNewAdapter ( IDbCommand cmd ) : |
||
CreateNewConnection ( ) : |
||
MakeBitwiseAndClause ( string columnName ) : |
||
MakeConnectionString ( string server, string database, string user, string password ) : string |
Assembles a 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.
|
|
MakeModulusClause ( string fieldName ) : |
||
NeedAsForColumnAliases ( ) : bool | ||
NeedToAliasColumns ( ) : bool | ||
SQLServerDescriptor ( |
This constructor reads all the appropriate values from a config file.
|
|
SQLServerDescriptor ( string server, string database, string user, string password ) : System |
Constructor that lets you pass everything as parameters rather than requiring a config.
|
|
SetParametersOnCommand ( IDbCommand cmd, IEnumerable parameters ) : void | ||
TableAliasPrefix ( ) : string | ||
TableAliasSuffix ( ) : string | ||
ToCleanString ( ) : string | ||
ToCompleteString ( ) : string | ||
UsePooling ( ) : bool |
public CreateNewAdapter ( IDbCommand cmd ) : |
||
cmd | IDbCommand | |
return |
public CreateNewConnection ( ) : |
||
return |
public MakeBitwiseAndClause ( string columnName ) : |
||
columnName | string | |
return |
public static MakeConnectionString ( string server, string database, string user, string password ) : string | ||
server | string | Server name that is hosting the database |
database | string | Database name on the server. |
user | string | User name to use when accessing the db. |
password | string | Password for above user. |
return | string |
public MakeModulusClause ( string fieldName ) : |
||
fieldName | string | |
return |
public SQLServerDescriptor ( |
||
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 ( string server, string database, string user, string password ) : System | ||
server | string | Server name. May not be null. |
database | string | Database name on that server. May not be null. |
user | string | Database user name, may be null. |
password | string | Password for the user. May be null. |
return | System |
public SetParametersOnCommand ( IDbCommand cmd, IEnumerable parameters ) : void | ||
cmd | IDbCommand | |
parameters | IEnumerable | |
return | void |