private void OpenConnection() { _connection = new SqliteConnection("DataSource=:memory:"); _connection.Open(); var options = new DbContextOptionsBuilder <BillToPayContext>() .UseSqlite(_connection) .Options; DbContext = new BillToPayContext(options); DbContext.Database.EnsureCreated(); }
public RepositoryBase(BillToPayContext context) { Context = context; DbSet = context.Set <T>(); }
public UnitOfWork(BillToPayContext context, IMediator bus) { _context = context; _bus = bus; }
public RuleRepository(BillToPayContext context) : base(context) { }
public AccountRepository(BillToPayContext context) : base(context) { }