示例#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();
     }
 }