Npgsql Api Docs |

# NpgsqlCommand.Transaction Property

Gets or sets the NpgsqlTransaction within which the NpgsqlCommand executes.

#### Overload List

Gets or sets the NpgsqlTransaction within which the NpgsqlCommand executes.

> new public NpgsqlTransaction Transaction {get; set;}

Gets or sets the NpgsqlTransaction within which the NpgsqlCommand executes.

> new public System.Data.Common.DbTransaction Transaction {get; set;}

#### See Also

NpgsqlCommand Class | Npgsql Namespace