Npgsql Api Docs |

# NpgsqlCommand.Transaction Property

Gets or sets the NpgsqlTransaction within which the NpgsqlCommand executes.

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

#### Property Value

The NpgsqlTransaction. The default value is a null reference.

#### See Also

NpgsqlCommand Class | Npgsql Namespace | NpgsqlCommand.Transaction Overload List

Transaction Property

Npgsql Api Docs |

# NpgsqlCommand.Transaction Property

Gets or sets the NpgsqlTransaction within which the NpgsqlCommand executes.

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

#### Property Value

The NpgsqlTransaction. The default value is a null reference.

#### See Also

NpgsqlCommand Class | Npgsql Namespace | NpgsqlCommand.Transaction Overload List