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(); }
public CostsRepository(CostPlansContext costPlansContext) : base(costPlansContext) { }
public SettingsRepository(CostPlansContext costPlansContext) : base(costPlansContext) { }
public IncomeRepository(CostPlansContext costPlansContext) : base(costPlansContext) { }
public UnitOfWork() { _context = DependencyService.Get <CostPlansContext>(); }
public UnitOfWork(CostPlansContext context) { _context = context; }
public PlanCostsRepository(CostPlansContext _context) : base(_context) { }
public CategoryRepository(CostPlansContext costPlansContext) : base(costPlansContext) { }
public ShopRepository(CostPlansContext costPlansContext) : base(costPlansContext) { }