Пример #1
0
        public MainWindow()
        {
            InitializeComponent();
            MyDbInitialize myDbInitializer = new MyDbInitialize();

            myDbInitializer.InitializeDatabase(context);
        }
Пример #2
0
        public EntryWindow()
        {
            InitializeComponent();
            MyDbInitialize myDbInitializer = new MyDbInitialize();
            MyDbContext context = new MyDbContext();
            myDbInitializer.InitializeDatabase(context);

            DataContext = new MainViewModel();
        }