예제 #1
0
        public override async Task <int> SaveChangesAsync(
            bool acceptAllChangesOnSuccess,
            CancellationToken cancellationToken = default)
        {
            await DbContextValidator.Validate(this, validatorFactory);

            return(await base.SaveChangesAsync(acceptAllChangesOnSuccess, cancellationToken));
        }
예제 #2
0
 public override int SaveChanges(bool acceptAllChangesOnSuccess)
 {
     DbContextValidator.Validate(this, validatorFactory).GetAwaiter().GetResult();
     return(base.SaveChanges(acceptAllChangesOnSuccess));
 }