public override async Task <int> SaveChangesAsync( bool acceptAllChangesOnSuccess, CancellationToken cancellationToken = default) { await DbContextValidator.Validate(this, validatorFactory); return(await base.SaveChangesAsync(acceptAllChangesOnSuccess, cancellationToken)); }
public override int SaveChanges(bool acceptAllChangesOnSuccess) { DbContextValidator.Validate(this, validatorFactory).GetAwaiter().GetResult(); return(base.SaveChanges(acceptAllChangesOnSuccess)); }