Exemple #1
0
        protected RepositoryBase()
        {
            _connection = new SqliteConnection(InMemoryConnectionString);
            _connection.Open();
            var options = new DbContextOptionsBuilder <CurrentAccountsDbContext>()
                          .UseSqlite(_connection)
                          .Options;

            _dbContext = new CurrentAccountsDbContext(options);
            _dbContext.Database.EnsureCreated();
        }
 public BankAccountRepository(CurrentAccountsDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Exemple #3
0
 public TransactionRepository(CurrentAccountsDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Exemple #4
0
 public CustomerRepository(CurrentAccountsDbContext dbContext)
 {
     _dbContext = dbContext;
 }