public override Task AfterSubmitAsync(DataAccessModelHookSubmitContext context, CancellationToken cancellationToken)
            {
                Console.WriteLine($"AfterSubmitAsync {context.DataAccessTransactionId} {context.TransactionContextId} - IsCommit: {context.IsCommit}, new objects: {context.New.Count()} {context.Exception?.Message}");

                if (context.IsCommit)
                {
                    this.CommitCount++;
                }

                return(base.AfterSubmitAsync(context, cancellationToken));
            }
            public override void AfterSubmit(DataAccessModelHookSubmitContext context)
            {
                Console.WriteLine($"AfterSubmit {context.DataAccessTransactionId} {context.TransactionContextId} - IsCommit: {context.IsCommit}, new objects: {context.New.Count()} {context.Exception?.Message}");

                if (context.IsCommit)
                {
                    this.CommitCount++;
                }

                base.AfterSubmit(context);
            }
Esempio n. 3
0
            public override void AfterSubmit(DataAccessModelHookSubmitContext context)
            {
                this.UpdateCount += context.Updated.Count();

                base.AfterSubmit(context);
            }