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