InternalTransaction tx = new InternalTransaction();
tx.AddResource(new MyResource());
tx.Commit();This code commits the transaction managed by the InternalTransaction object. Once the transaction is committed, all changes made to the resources are saved to the database. The System.Transactions namespace is a part of the .NET Framework class library, which is included in the .NET Standard library.