Use Transactional.SaveChanges() to bundle the SaveChanges for multiple recordsets into a single HTTP request and a single database transaction.


See topic Transactions for more information.


public static void SaveChanges(params IRecordsetBase[] loaders)

public static void SaveChanges(Connector connector, params IRecordsetBase[] loaders)

public static async Task SaveChangesAsync(params IRecordsetBase[] loaders)

public static async Task SaveChangesAsync(Connector connector, params IRecordsetBase[] loaders)

Examples


var customers = new CustomersRecordset();

var patients = new PatientsRecordset();


customers.Append();

customers.Name = "Joanna";


patients.Append();

patients.Name = "Pete";

           

Transactional.SaveChanges(customers, patients);