public static JetDbContextOptionsBuilder ApplyConfiguration(this JetDbContextOptionsBuilder optionsBuilder)
        {
            var maxBatch = TestEnvironment.GetInt(nameof(JetDbContextOptionsBuilder.MaxBatchSize));

            if (maxBatch.HasValue)
            {
                optionsBuilder.MaxBatchSize(maxBatch.Value);
            }

            optionsBuilder.ExecutionStrategy(d => new TestJetRetryingExecutionStrategy(d));

            optionsBuilder.CommandTimeout(JetTestStore.CommandTimeout);

            return(optionsBuilder);
        }
Example #2
0
 protected virtual void ConfigureOptions(JetDbContextOptionsBuilder sqlCeDbContextOptionsBuilder)
 {
 }
Example #3
0
 public static JetDbContextOptionsBuilder ApplyConfiguration(this JetDbContextOptionsBuilder optionsBuilder)
 {
     System.Data.Jet.JetConfiguration.ShowSqlStatements = true;
     return(optionsBuilder);
 }