Npgsql Api Docs |

# NpgsqlCommand.Connection Property

Gets or sets the NpgsqlConnection used by this instance of the NpgsqlCommand.

#### Overload List

Gets or sets the NpgsqlConnection used by this instance of the NpgsqlCommand.

> new public NpgsqlConnection Connection {get; set;}

Gets or sets the NpgsqlConnection used by this instance of the NpgsqlCommand.

> new public System.Data.Common.DbConnection Connection {get; set;}

#### See Also

NpgsqlCommand Class | Npgsql Namespace