예제 #1
0
        public ContextTestBase()
        {
            var options = ContextOptionsFactory.CreateSqliteOptions <SchedulerDbContext>();

            context = new SchedulerDbContext(options);
            context.Database.OpenConnection();
            context.Database.EnsureCreated();
        }
예제 #2
0
 public DisconnectedStateTestBase()
 {
     options = ContextOptionsFactory.CreateSqliteOptions <SchedulerDbContext>();
     using (var context = new SchedulerDbContext(options))
     {
         context.Database.OpenConnection();
         context.Database.EnsureCreated();
     }
 }