Exemple #1
0
        public DataAppCore(string dbpath = null)
        {
            if (string.IsNullOrEmpty(dbpath) == false)
            {
                this.controllerFactory = new ControllerFactory(dbpath);
            }
            else
            {
                this.controllerFactory = new ControllerFactory();
            }

            this.UserController    = controllerFactory.CreateIUserController();
            this.CheckController   = controllerFactory.CreateCheckController();
            this.ExpenseController = controllerFactory.CreateExpenseController();
            this.ProjectController = controllerFactory.CreateProjectController();

            Seed();
        }