Npgsql Api Docs |

# NpgsqlCommand.Connection Property

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

[Visual Basic]
Overloads Public Property Connection As NpgsqlConnection
[C#]
new public NpgsqlConnection Connection {get; set;}

#### Property Value

The connection to a data source. The default value is a null reference.

#### See Also

NpgsqlCommand Class | Npgsql Namespace | NpgsqlCommand.Connection Overload List

Connection Property

Npgsql Api Docs |

# NpgsqlCommand.Connection Property

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

[Visual Basic]
Overloads Public Property Connection As DbConnection
[C#]
new public System.Data.Common.DbConnection Connection {get; set;}

#### Property Value

The connection to a data source. The default value is a null reference.

#### See Also

NpgsqlCommand Class | Npgsql Namespace | NpgsqlCommand.Connection Overload List