Ejemplo n.º 1
0
        /// <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);
        }
Ejemplo n.º 2
0
 /// <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);
 }