Пример #1
0
        private void OnFirstRun()
        {
            var context   = new BUHContext();
            var isCreated = context.Database.CreateIfNotExists();

            context.Dispose();
            if (!isCreated)
            {
                return;
            }

            _firstRunService.FillDefaultDataBase();
        }
Пример #2
0
 public KekRepository(IMapper mapper)
 {
     this.context = new BUHContext();
     this.mapper  = mapper;
 }
Пример #3
0
 public CategorieRepository(IMapper mapper)
 {
     this.context = new BUHContext();
     this.mapper  = mapper;
 }
Пример #4
0
 public TransactionRepository(IMapper mapper)
 {
     this.context = new BUHContext();
     this.mapper  = mapper;
 }
Пример #5
0
 public ProviderRepository(IMapper mapper)
 {
     this.context = new BUHContext();
     this.mapper  = mapper;
 }