Exemplo n.º 1
0
 public EventLogOnSQLServer(DbContextOptions <EventLogContext> databaseOptions, int portion)
 {
     _databaseActions  = new EventLogSQLServerActions();
     _maxPeriodRowData = DateTime.MinValue;
     _portion          = portion;
     if (databaseOptions == null)
     {
         var optionsBuilder = new DbContextOptionsBuilder <EventLogContext>();
         _databaseActions.OnConfiguring(optionsBuilder);
         _databaseOptions = optionsBuilder.Options;
     }
     else
     {
         _databaseOptions = databaseOptions;
     }
 }
Exemplo n.º 2
0
        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            CheckSettings();

            _extensionActions.OnConfiguring(optionsBuilder);
        }