コード例 #1
0
        public App()
        {
            InitializeComponent();

            DependencyService.Register <IDialogService, DialogService>();
            DependencyService.Register <IUnitOfWork, UnitOfWork>();
            DependencyService.Register <CostPlansContext>();
            DependencyService.Register <BalanceModel>();

            using var dbContext = new CostPlansContext();
            dbContext.Database.EnsureCreated();

            MainPage = new MainPage();
        }
コード例 #2
0
 public CostsRepository(CostPlansContext costPlansContext) : base(costPlansContext)
 {
 }
コード例 #3
0
 public SettingsRepository(CostPlansContext costPlansContext) : base(costPlansContext)
 {
 }
コード例 #4
0
 public IncomeRepository(CostPlansContext costPlansContext) : base(costPlansContext)
 {
 }
コード例 #5
0
 public UnitOfWork()
 {
     _context = DependencyService.Get <CostPlansContext>();
 }
コード例 #6
0
 public UnitOfWork(CostPlansContext context)
 {
     _context = context;
 }
コード例 #7
0
 public PlanCostsRepository(CostPlansContext _context) : base(_context)
 {
 }
コード例 #8
0
 public CategoryRepository(CostPlansContext costPlansContext) : base(costPlansContext)
 {
 }
コード例 #9
0
 public ShopRepository(CostPlansContext costPlansContext) : base(costPlansContext)
 {
 }