Свойство | Type | Description | |
---|---|---|---|
AddFunctionColumnListSupport | void | ||
AppendCommandReplacingParameterValues | void | ||
AppendParameterPlaceHolder | void | ||
AppendParameterPlaceHolders | void | ||
AppendParameterValue | void | ||
AppendParameterValues | void | ||
BindParameters | void | ||
BuildParameterNameCharacterTable | |||
CheckConnectionState | void | ||
CheckFunctionNeedsColumnDefinitionList | System.Boolean | ||
ClearPoolAndCreateException | |||
ExecuteBlind | void | ||
ExecuteBlind | void | ||
ExecuteBlind | void | ||
ExecuteSetStatementTimeoutBlind | void | ||
GetCommandText | byte[] | ||
GetCommandText | byte[] | ||
GetDistinctTrimmedCommands | StringChunk[] | ||
GetExecuteCommandText | byte[] | ||
GetReader | ForwardsOnlyDataReader | ||
ICloneable | Object | ||
IsParamNameChar | bool | ||
NpgsqlCommand | System | ||
NpgsqlCommand | System | ||
PrepareInternal | void | ||
SetCommandTimeout | void | ||
UnPrepare | void |
Méthode | Description | |
---|---|---|
Cancel ( ) : void |
Attempts to cancel the execution of a This Method isn't implemented yet. |
|
Clone ( ) : |
Create a new command based on this one.
|
|
CreateParameter ( ) : Npgsql.NpgsqlParameter |
Creates a new instance of a
|
|
ExecuteNonQuery ( ) : |
Executes a SQL statement against the connection and returns the number of rows affected.
|
|
ExecuteReader ( ) : Npgsql.NpgsqlDataReader |
Sends the
|
|
ExecuteReader ( CommandBehavior cb ) : Npgsql.NpgsqlDataReader |
Sends the Currently the CommandBehavior parameter is ignored. |
|
ExecuteScalar ( ) : Object |
Executes the query, and returns the first column of the first row in the result set returned by the query. Extra columns or rows are ignored.
|
|
NpgsqlCommand ( String cmdText ) : System |
Initializes a new instance of the
|
|
NpgsqlCommand ( String cmdText, |
Initializes a new instance of the
|
|
NpgsqlCommand ( String cmdText, |
Initializes a new instance of the
|
|
Prepare ( ) : void |
Creates a prepared version of the command on a PostgreSQL server.
|
Méthode | Description | |
---|---|---|
CreateDbParameter ( ) : |
Creates a new instance of an
|
|
ExecuteDbDataReader ( CommandBehavior behavior ) : System.Data.Common.DbDataReader |
Sends the
|
Méthode | Description | |
---|---|---|
AddFunctionColumnListSupport ( Stream st ) : void | ||
AppendCommandReplacingParameterValues ( Stream dest, string src, int begin, int length, bool prepare, bool forExtendedQuery ) : void |
Append a region of a source command text to an output command, performing parameter token substitutions.
|
|
AppendParameterPlaceHolder ( Stream dest, Npgsql.NpgsqlParameter parameter, int paramNumber ) : void | ||
AppendParameterPlaceHolders ( Stream dest ) : void | ||
AppendParameterValue ( Stream dest, Npgsql.NpgsqlParameter parameter ) : void | ||
AppendParameterValues ( Stream dest ) : void | ||
BindParameters ( ) : void |
This method binds the parameters from parameters collection to the bind message.
|
|
BuildParameterNameCharacterTable ( ) : |
||
CheckConnectionState ( ) : void |
This method checks the connection state to see if the connection is set or it is open. If one of this conditions is not met, throws an InvalidOperationException
|
|
CheckFunctionNeedsColumnDefinitionList ( ) : System.Boolean | ||
ClearPoolAndCreateException ( |
||
ExecuteBlind ( |
||
ExecuteBlind ( |
Internal query shortcut for use in cases where the number of affected rows is of no interest.
|
|
ExecuteBlind ( |
Internal query shortcut for use in cases where the number of affected rows is of no interest.
|
|
ExecuteSetStatementTimeoutBlind ( |
Special adaptation of ExecuteBlind() that sets statement_timeout. This exists to prevent Connector.SetBackendCommandTimeout() from calling Command.ExecuteBlind(), which will cause an endless recursive loop.
|
|
GetCommandText ( ) : byte[] |
This method substitutes the
|
|
GetCommandText ( bool prepare, bool forExtendQuery ) : byte[] |
Process this.commandText, trimming each distinct command and substituting paramater tokens.
|
|
GetDistinctTrimmedCommands ( string src ) : StringChunk[] |
Find the beginning and end of each distinct SQL command and produce a list of descriptors, one for each command. Commands described are trimmed of leading and trailing white space and their terminating semi-colons.
|
|
GetExecuteCommandText ( ) : byte[] | ||
GetReader ( CommandBehavior cb ) : ForwardsOnlyDataReader | ||
ICloneable ( ) : Object |
Create a new command based on this one.
|
|
IsParamNameChar ( char ch ) : bool | ||
NpgsqlCommand ( ) : System | ||
NpgsqlCommand ( String cmdText, |
Used to execute internal commands.
|
|
PrepareInternal ( ) : void | ||
SetCommandTimeout ( ) : void |
Releases the resources used by the
|
|
UnPrepare ( ) : void |
protected CreateDbParameter ( ) : |
||
Résultat |
public CreateParameter ( ) : Npgsql.NpgsqlParameter | ||
Résultat | Npgsql.NpgsqlParameter |
protected ExecuteDbDataReader ( CommandBehavior behavior ) : System.Data.Common.DbDataReader | ||
behavior | CommandBehavior | One of the |
Résultat | System.Data.Common.DbDataReader |
public ExecuteReader ( ) : Npgsql.NpgsqlDataReader | ||
Résultat | Npgsql.NpgsqlDataReader |
public ExecuteReader ( CommandBehavior cb ) : Npgsql.NpgsqlDataReader | ||
cb | CommandBehavior | One of the |
Résultat | Npgsql.NpgsqlDataReader |
public NpgsqlCommand ( String cmdText ) : System | ||
cmdText | String | The text of the query. |
Résultat | System |
public NpgsqlCommand ( String cmdText, |
||
cmdText | String | The text of the query. |
connection | A |
|
Résultat | System |
public NpgsqlCommand ( String cmdText, |
||
cmdText | String | The text of the query. |
connection | A |
|
transaction | The |
|
Résultat | System |