Npgsql API Documentation |

# NpgsqlCommand Constructor

[This is preliminary documentation and subject to change.]

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