Method | Description | |
---|---|---|
CreateCommand ( ) : |
Uses this ConnectionHelper instance's connection to create and return a new DbCommand instance.
|
|
CreateParameter ( string parameterName, object value ) : |
Uses this ConnectionHelper's Provider to create a DbParameter instance with the given parameter name and value.
|
|
CreateParameter ( string parameterName, object value, DbType dbType ) : |
Uses this ConnectionHelper's Provider to create a DbParameter instance with the given parameter name and value.
|
|
CreateParameter ( string parameterName, object value, DbType dbType, int size ) : |
Uses this ConnectionHelper's Provider to create a DbParameter instance with the given parameter name and value.
|
|
CreateTextCommand ( string commandText ) : |
Users this ConnectionHelper instance's connection to create and return a new DbCommand with the given command text. CommandType is automatically set to CommandType.Text.
|
|
DbConnectionHelper ( |
Creates a new DbConnectionHelper instance from the given ConnectionStringSettings.
|
|
DbConnectionHelper ( string providerName, string connectionString ) : System |
Creates a new DbConnectionHelper instance from the given provider name and database connection string..
|
|
Dispose ( ) : void |
Disposes this DbConnectionHelper and its underlying connection.
|
Method | Description | |
---|---|---|
CheckDisposed ( ) : void | ||
Dispose ( bool disposing ) : void |
public CreateCommand ( ) : |
||
return |
public CreateParameter ( string parameterName, object value ) : |
||
parameterName | string | The name of the parameter. |
value | object | The value of the parameter. |
return |
public CreateParameter ( string parameterName, object value, DbType dbType ) : |
||
parameterName | string | The name of the parameter. |
value | object | The value of the parameter. |
dbType | DbType | The DB type. |
return |
public CreateParameter ( string parameterName, object value, DbType dbType, int size ) : |
||
parameterName | string | The name of the parameter. |
value | object | The value of the parameter. |
dbType | DbType | The DB type. |
size | int | The size/length of the parameter. |
return |
public CreateTextCommand ( string commandText ) : |
||
commandText | string | |
return |
public DbConnectionHelper ( |
||
settings | ||
return | System |
public DbConnectionHelper ( string providerName, string connectionString ) : System | ||
providerName | string | |
connectionString | string | |
return | System |