Method | Description | |
---|---|---|
AddInParameter ( |
Adds a new In 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 DbParameter object to the given command.
|
|
AddInParameter ( |
Adds a new In DbParameter object to the given command.
|
|
AddOutParameter ( |
Adds a new Out DbParameter object to the given command.
|
|
AddParameter ( |
Adds a new instance of a DbParameter object to the command.
|
|
AddParameter ( |
Adds a new instance of a DbParameter object to the command.
|
|
BuildParameterName ( string name ) : string |
Builds a value parameter name for the current database.
|
|
CheckIfNpgsqlCommand ( |
Checks if a database command is a Npgsql command and converts.
|
|
ExecuteDataSet ( |
Executes the storedProcedureName with parameterValues as part of the transaction and returns the results in a new T:System.Data.DataSet within a transaction.
|
|
ExecuteDataSet ( string storedProcedureName ) : |
Executes the storedProcedureName with parameterValues and returns the results in a new T:System.Data.DataSet.
|
|
ExecuteNonQuery ( |
Executes the storedProcedureName using the given parameterValues within a transaction and returns the number of rows affected.
|
|
ExecuteNonQuery ( string storedProcedureName ) : int |
Executes the storedProcedureName using the given parameterValues and returns the number of rows affected.
|
|
ExecuteReader ( |
Executes the storedProcedureName with the given parameterValues within the given transaction and returns an
|
|
ExecuteReader ( string storedProcedureName ) : IDataReader |
Executes the storedProcedureName with the given parameterValues and returns an
|
|
ExecuteScalar ( |
Executes the storedProcedureName with the given parameterValues within a transaction and returns the first column of the first row in the result set returned by the query. Extra columns or rows are ignored.
|
|
ExecuteScalar ( string storedProcedureName ) : object |
Executes the storedProcedureName with the given parameterValues and returns the first column of the first row in the result set returned by the query. Extra columns or rows are ignored.
|
|
NpgsqlDatabase ( string connectionString ) : System |
생성자
|
Method | Description | |
---|---|---|
ConfigureParameter ( |
Configures a given DbParameter.
|
|
CreateParameter ( string name, NpgsqlDbType dbType, int size, ParameterDirection direction, bool nullable, byte precision, byte scale, string sourceColumn, DataRowVersion sourceVersion, object value ) : |
Adds a new instance of a DbParameter object.
|
|
SameNumberOfParametersAndValues ( |
Determines if the number of parameters in the command matches the array of parameter values.
|
|
UserParametersStartIndex ( ) : int |
Returns the starting index for parameters in a command.
|
Method | Description | |
---|---|---|
ConfigureParameter ( Npgsql.NpgsqlParameter parameter, string name, NpgsqlDbType dbType, int size, ParameterDirection direction, bool nullable, byte precision, byte scale, string sourceColumn, DataRowVersion sourceVersion, object value ) : void | ||
DeriveParameters ( |
||
OnNpgsqlRowUpdated ( object sender, Npgsql.NpgsqlRowUpdatedEventArgs rowThatCouldNotBeWritten ) : void |
Called when [NPGSQL row updated].
|
|
SetUpRowUpdatedEvent ( |
public AddInParameter ( |
||
command | The command to add the in parameter. | |
name | string | The name of the parameter. |
dbType | NpgsqlDbType | One of the |
return | void |
public AddInParameter ( |
||
command | The commmand to add the parameter. | |
name | string | The name of the parameter. |
dbType | NpgsqlDbType | One of the |
value | object | The value of the parameter. |
return | void |
public AddInParameter ( |
||
command | The command to add the parameter. | |
name | string | The name of the parameter. |
dbType | NpgsqlDbType | 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 |
return | void |
public AddOutParameter ( |
||
command | The command to add the out parameter. | |
name | string | The name of the parameter. |
dbType | NpgsqlDbType | One of the |
size | int | The maximum size of the data within the column. |
return | void |
public AddParameter ( |
||
command | The command to add the parameter. | |
name | string | The name of the parameter. |
dbType | NpgsqlDbType | One of the |
direction | ParameterDirection | One of the |
sourceColumn | string | The name of the source column mapped to the DataSet and used for loading or returning the |
sourceVersion | DataRowVersion | One of the |
value | object | The value of the parameter. |
return | void |
public AddParameter ( |
||
command | The command to add the parameter. | |
name | string | The name of the parameter. |
dbType | NpgsqlDbType | One of the |
size | int | The maximum size of the data within the column. |
direction | ParameterDirection | One of the |
nullable | bool | A value indicating whether the parameter accepts |
precision | byte | The maximum number of digits used to represent the |
scale | byte | The number of decimal places to which |
sourceColumn | string | The name of the source column mapped to the DataSet and used for loading or returning the |
sourceVersion | DataRowVersion | One of the |
value | object | The value of the parameter. |
return | void |
public BuildParameterName ( string name ) : string | ||
name | string | The name of the parameter. |
return | string |
public static CheckIfNpgsqlCommand ( |
||
command | The command. | |
return |
protected ConfigureParameter ( |
||
param | The |
|
name | string | The name of the parameter. |
dbType | DbType | One of the |
size | int | The maximum size of the data within the column. |
direction | ParameterDirection | One of the |
nullable | bool | A value indicating whether the parameter accepts |
precision | byte | The maximum number of digits used to represent the |
scale | byte | The number of decimal places to which |
sourceColumn | string | The name of the source column mapped to the DataSet and used for loading or returning the |
sourceVersion | DataRowVersion | One of the |
value | object | The value of the parameter. |
return | void |
protected CreateParameter ( string name, NpgsqlDbType dbType, int size, ParameterDirection direction, bool nullable, byte precision, byte scale, string sourceColumn, DataRowVersion sourceVersion, object value ) : |
||
name | string | The name of the parameter. |
dbType | NpgsqlDbType | One of the |
size | int | The maximum size of the data within the column. |
direction | ParameterDirection | One of the |
nullable | bool | A value indicating whether the parameter accepts |
precision | byte | The maximum number of digits used to represent the |
scale | byte | The number of decimal places to which |
sourceColumn | string | The name of the source column mapped to the DataSet and used for loading or returning the |
sourceVersion | DataRowVersion | One of the |
value | object | The value of the parameter. |
return |
public ExecuteDataSet ( |
||
transaction | The |
|
storedProcedureName | string | The stored procedure to execute. |
return |
public ExecuteDataSet ( string storedProcedureName ) : |
||
storedProcedureName | string | The stored procedure to execute. |
return |
public ExecuteNonQuery ( |
||
transaction | The |
|
storedProcedureName | string | The name of the stored procedure to execute. |
return | int |
public ExecuteNonQuery ( string storedProcedureName ) : int | ||
storedProcedureName | string | The name of the stored procedure to execute. |
return | int |
public ExecuteReader ( |
||
transaction | The |
|
storedProcedureName | string | The command that contains the query to execute. |
return | IDataReader |
public ExecuteReader ( string storedProcedureName ) : IDataReader | ||
storedProcedureName | string | The command that contains the query to execute. |
return | IDataReader |
public ExecuteScalar ( |
||
transaction | The |
|
storedProcedureName | string | The stored procedure to execute. |
return | object |
public ExecuteScalar ( string storedProcedureName ) : object | ||
storedProcedureName | string | The stored procedure to execute. |
return | object |
public NpgsqlDatabase ( string connectionString ) : System | ||
connectionString | string | |
return | System |
protected SameNumberOfParametersAndValues ( |
||
command | The |
|
values | object | The array of parameter values. |
return | bool |