An NDoc Documented Class Library |

# NpgsqlCommand Constructor

Initializes a new instance of the NpgsqlCommand class.

#### Overload List

Initializes a new instance of the NpgsqlCommand class.

> public NpgsqlCommand();

Initializes a new instance of the NpgsqlCommand class with the text of the query.

> public NpgsqlCommand(string);

Initializes a new instance of the NpgsqlCommand class with the text of the query and a NpgsqlConnection.

> public NpgsqlCommand(string,NpgsqlConnection);

Initializes a new instance of the NpgsqlCommand class with the text of the query, a NpgsqlConnection, and the NpgsqlTransaction.

> public NpgsqlCommand(string,NpgsqlConnection,NpgsqlTransaction);

#### See Also

NpgsqlCommand Class | Npgsql Namespace