Share via


IDbContextTransaction.Rollback Method

Definition

Discards all changes made to the database in the current transaction.

public void Rollback ();
abstract member Rollback : unit -> unit
Public Sub Rollback ()

Remarks

See Transactions in EF Core for more information and examples.

Applies to