Npgsql API Documentation

NpgsqlCommand Methods

[This is preliminary documentation and subject to change.]

The methods of the NpgsqlCommand class are listed below. For a complete list of NpgsqlCommand class members, see the NpgsqlCommand Members topic.

Public Instance Methods

Cancel Attempts to cancel the execution of a NpgsqlCommand.
CreateObjRef (inherited from MarshalByRefObject)Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
CreateParameter Creates a new instance of a NpgsqlParameter object.
Dispose (inherited from Component) Releases all resources used by the Component.
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
ExecuteNonQuery Executes a SQL statement against the connection and returns the number of rows affected.
ExecuteReaderOverloaded. Sends the CommandText to the Connection and builds a NpgsqlDataReader.
ExecuteScalar 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.
GetHashCode (inherited from Object)Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetLifetimeService (inherited from MarshalByRefObject)Retrieves the current lifetime service object that controls the lifetime policy for this instance.
GetType (inherited from Object)Gets the Type of the current instance.
InitializeLifetimeService (inherited from MarshalByRefObject) Obtains a lifetime service object to control the lifetime policy for this instance.
Prepare Creates a prepared version of the command on a PostgreSQL server.
ToString (inherited from Component) 

See Also

NpgsqlCommand Class | Npgsql Namespace