Beispiel #1
0
        public ReportsForm()
        {
            InitializeComponent();


            try
            {
                ErisDbContext db = new ErisDbContext();
                new DatabaseSeeder(db).Seed();
                _actualExecuter = new QueryExecuter(db);
                _fakeExecuter   = new FakeExecuter(db);
            }
            catch (Exception e)
            {
                MessageBox.Show("Error: Could not connect to db. Hey student, are you sure the database file is not open anywhere else (even Visual Studio Server Explorer will cause problems)? \r\n\r\n(" + e.Message + ")");
            }

            dtgrdReportOutput.DataMember   = "PRIMARY";
            dtgrdExpectedOutput.DataMember = "PRIMARY";
        }
 public DatabaseSeeder(ErisDbContext context)
 {
     _context = context;
 }
 public FakeExecuter(ErisDbContext context)
 {
     _context = context;
 }
 public QueryExecuter(ErisDbContext context)
 {
     _context = context;
 }