Метод | Описание | |
---|---|---|
AddInParameter ( |
Adds a new In T:System.Data.Common.DbParameter object to the given command. This version of the method is used when you can have the same parameter object multiple times with different values. |
|
AddInParameter ( |
Adds a new In T:System.Data.Common.DbParameter object to the given command.
|
|
AddInParameter ( |
Adds a new In T:System.Data.Common.DbParameter object to the given command.
|
|
AddOutParameter ( |
Adds the out parameter.
|
|
AddParameter ( |
Adds a new instance of a T:System.Data.Common.DbParameter object to the command.
|
|
BuildParameterName ( string parameterName ) : string |
Builds DBMS specific parameter name.
|
|
CreateConnection ( ) : |
Creates the connection.
|
|
DatabaseWrapper ( Func |
||
DiscoverParameters ( |
Discovers the parameters.
|
|
ExecuteDataSet ( |
Executes the data set.
|
|
ExecuteNonQuery ( CommandType commandType, string commandText ) : int |
Executes the non query.
|
|
ExecuteNonQuery ( |
||
ExecuteNonQuery ( |
Executes the non query.
|
|
ExecuteNonQuery ( string storedProcedureName ) : int |
Executes the non query.
|
|
ExecuteReader ( CommandType commandType, string commandText ) : IDataReader |
Executes the reader.
|
|
ExecuteReader ( |
Executes the reader.
|
|
ExecuteReader ( string storedProcedureName ) : IDataReader |
Executes the reader.
|
|
ExecuteScalar ( CommandType commandType, string commandText ) : object |
Executes the scalar.
|
|
ExecuteScalar ( |
Executes the scalar.
|
|
ExecuteScalar ( |
Executes the scalar.
|
|
GetDataAdapter ( ) : |
Gets a DbDataAdapter with Standard update behavior.
|
|
GetParameterValue ( |
Gets the parameter value.
|
|
GetSqlStringCommand ( string query ) : |
Build a T:System.Data.Common.DbCommand based on the SQL text.
|
|
GetStoredProcCommand ( string procedureName ) : |
Gets the stored proc command.
|
|
GetStoredProcCommandWithSourceColumns ( string storedProcedureName ) : |
Wraps around a derived class's implementation of the GetStoredProcCommandWrapper method and adds functionality for using this method with UpdateDataSet. The GetStoredProcCommandWrapper method (above) that takes a params array expects the array to be filled with VALUES for the parameters. This method differs from the GetStoredProcCommandWrapper method in that it allows a user to pass in a string array. It will also dynamically discover the parameters for the stored procedure and set the parameter's SourceColumns to the strings that are passed in. It does this by mapping the parameters to the strings IN ORDER. Thus, order is very important.
|
|
SetParameterValue ( |
Sets the parameter value.
|
public AddInParameter ( |
||
command | The command to add the in parameter. | |
name | string | The name of the parameter. |
dbType | DbType | One of the |
Результат | void |
public AddInParameter ( |
||
command | The commmand to add the parameter. | |
name | string | The name of the parameter. |
dbType | DbType | One of the |
value | object | The value of the parameter. |
Результат | void |
public AddInParameter ( |
||
command | The command to add the parameter. | |
name | string | The name of the parameter. |
dbType | DbType | One of the |
sourceColumn | string | The name of the source column mapped to the DataSet and used for loading or returning the value. |
sourceVersion | DataRowVersion | One of the |
Результат | void |
public AddOutParameter ( |
||
command | The command. | |
name | string | The name. |
dbType | DbType | Type of the db. |
size | int | The size. |
Результат | void |
public AddParameter ( |
||
command | The command to add the parameter. | |
name | string | |
dbType | DbType | |
direction | ParameterDirection | |
sourceColumn | string | |
sourceVersion | DataRowVersion | |
value | object | |
Результат | void |
public BuildParameterName ( string parameterName ) : string | ||
parameterName | string | The parameter name without any prefix symbol. |
Результат | string |
public CreateConnection ( ) : |
||
Результат |
public DatabaseWrapper ( Func |
||
dataAccessor | Func |
|
databaseName | string | |
Результат | System |
public DiscoverParameters ( |
||
cmd | The command. | |
Результат | void |
public ExecuteDataSet ( |
||
command | The command. | |
transaction | The transaction. | |
Результат |
public ExecuteNonQuery ( CommandType commandType, string commandText ) : int | ||
commandType | CommandType | Type of the command. |
commandText | string | The command text. |
Результат | int |
public ExecuteNonQuery ( |
||
command | ||
transaction | ||
Результат | int |
public ExecuteNonQuery ( |
||
transaction | The transaction. | |
storedProcedureName | string | Name of the stored procedure. |
Результат | int |
public ExecuteNonQuery ( string storedProcedureName ) : int | ||
storedProcedureName | string | Name of the stored procedure. |
Результат | int |
public ExecuteReader ( CommandType commandType, string commandText ) : IDataReader | ||
commandType | CommandType | Type of the command. |
commandText | string | The command text. |
Результат | IDataReader |
public ExecuteReader ( |
||
command | The command. | |
transaction | The transaction. | |
Результат | IDataReader |
public ExecuteReader ( string storedProcedureName ) : IDataReader | ||
storedProcedureName | string | Name of the stored procedure. |
Результат | IDataReader |
public ExecuteScalar ( CommandType commandType, string commandText ) : object | ||
commandType | CommandType | Type of the command. |
commandText | string | The command text. |
Результат | object |
public ExecuteScalar ( |
||
command | The command. | |
Результат | object |
public ExecuteScalar ( |
||
command | The command. | |
transaction | The transaction. | |
Результат | object |
public GetDataAdapter ( ) : |
||
Результат |
public GetParameterValue ( |
||
command | The command. | |
name | string | The name. |
Результат | object |
public GetSqlStringCommand ( string query ) : |
||
query | string | The SQL text. |
Результат |
public GetStoredProcCommand ( string procedureName ) : |
||
procedureName | string | Name of the procedure. |
Результат |
public GetStoredProcCommandWithSourceColumns ( string storedProcedureName ) : |
||
storedProcedureName | string | |
Результат |
public SetParameterValue ( |
||
command | The command. | |
name | string | The name. |
value | object | The value. |
Результат | void |