public override Task <int> SaveChangesAsync(
            bool acceptAllChangesOnSuccess,
            CancellationToken cancellationToken = new CancellationToken())
        {
            IDbContextReadImplementation.ThrowWriteException();

            return(base.SaveChangesAsync(acceptAllChangesOnSuccess, cancellationToken));
        }
        protected DbContextRead(DbContextOptions options)
            : base(options)
        {
            // trait
            _readImplementation = this;

            TrackerSettings();
        }
        protected AuthorizationDbContextRead(
            DbContextOptions options,
            IOptions <OperationalStoreOptions> operationalStoreOptions)
            : base(options, operationalStoreOptions)
        {
            // trait
            _readImplementation = this;

            TrackerSettings();
        }
 private void TrackerSettings() => IDbContextReadImplementation.TrackerSettings(ChangeTracker);
        public override int SaveChanges(bool acceptAllChangesOnSuccess)
        {
            IDbContextReadImplementation.ThrowWriteException();

            return(base.SaveChanges(acceptAllChangesOnSuccess));
        }
        public override int SaveChanges()
        {
            IDbContextReadImplementation.ThrowWriteException();

            return(base.SaveChanges());
        }