Method | Description | |
---|---|---|
ExecuteCommand ( string query, CommandType commandType = CommandType.Text, object>.Dictionary |
Executes the query, and returns number of rows affected
|
|
ExecuteScaler ( string query, CommandType commandType = CommandType.Text, object>.Dictionary |
Executes the query, and returns the first column of the first row in the result set returned by the query. Additional columns or rows are ignored.
|
|
GetDataReader ( string query, CommandType commandType, object>.Dictionary |
Gets a data reader.
|
|
GetDataSet ( string query, CommandType commandType, object>.Dictionary |
Gets a data set.
|
|
GetDataTable ( string query, CommandType commandType, object>.Dictionary |
Gets a data table.
|
Method | Description | |
---|---|---|
GetConnectionString ( ) : string |
public static ExecuteCommand ( string query, CommandType commandType = CommandType.Text, object>.Dictionary |
||
query | string | The query. |
commandType | CommandType | Type of the command. |
parameters | object>.Dictionary | The parameters. |
commandTimeout | int | The command timeout (seconds) |
return | int |
public static ExecuteScaler ( string query, CommandType commandType = CommandType.Text, object>.Dictionary |
||
query | string | The query. |
commandType | CommandType | Type of the command. |
parameters | object>.Dictionary | The parameters. |
return | object |
public static GetDataReader ( string query, CommandType commandType, object>.Dictionary |
||
query | string | The query. |
commandType | CommandType | Type of the command. |
parameters | object>.Dictionary | The parameters. |
return | IDataReader |
public static GetDataSet ( string query, CommandType commandType, object>.Dictionary |
||
query | string | The query. |
commandType | CommandType | Type of the command. |
parameters | object>.Dictionary | The parameters. |
timeOut | int | The time out in seconds. |
return |
public static GetDataTable ( string query, CommandType commandType, object>.Dictionary |
||
query | string | The query. |
commandType | CommandType | Type of the command. |
parameters | object>.Dictionary | The parameters. |
return | DataTable |