/// <summary> /// Initializes a <see cref="AceQLTransaction"/>object. This will put the remote connection in auto commit mode off. /// </summary> /// <returns>A new <see cref="AceQLTransaction"/> object.</returns> /// <exception cref="AceQL.Client.Api.AceQLException">If any Exception occurs.</exception> public async Task <AceQLTransaction> BeginTransactionAsync() { TestConnectionOpened(); await aceQLHttpApi.CallApiNoResultAsync("set_auto_commit", "false").ConfigureAwait(false); AceQLTransaction aceQLTransaction = new AceQLTransaction(this); return(aceQLTransaction); }
/// <summary> /// Commits the remote database transaction. /// <para/>Note that this call will put the remote connection in auto commit mode on after Commit. /// </summary> /// <exception cref="AceQL.Client.Api.AceQLException">If any Exception occurs.</exception> public async Task CommitAsync() { await aceQLHttpApi.CallApiNoResultAsync("set_auto_commit", "true").ConfigureAwait(false); }