private void OnFirstRun() { var context = new BUHContext(); var isCreated = context.Database.CreateIfNotExists(); context.Dispose(); if (!isCreated) { return; } _firstRunService.FillDefaultDataBase(); }
public KekRepository(IMapper mapper) { this.context = new BUHContext(); this.mapper = mapper; }
public CategorieRepository(IMapper mapper) { this.context = new BUHContext(); this.mapper = mapper; }
public TransactionRepository(IMapper mapper) { this.context = new BUHContext(); this.mapper = mapper; }
public ProviderRepository(IMapper mapper) { this.context = new BUHContext(); this.mapper = mapper; }