Npgsql Api Docs

NpgsqlCommand Methods

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.
Clone Create a new command based on this one.
CreateObjRef (inherited from MarshalByRefObject) 
CreateParameter Creates a new instance of a NpgsqlParameter object.
Dispose (inherited from Component) 
Equals (inherited from 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) 
GetLifetimeService (inherited from MarshalByRefObject) 
GetType (inherited from Object) 
InitializeLifetimeService (inherited from MarshalByRefObject) 
Prepare Creates a prepared version of the command on a PostgreSQL server.
ToString (inherited from Component) 

See Also

NpgsqlCommand Class | Npgsql Namespace