public DbRepository(DBAdapter context) { _context = context; dbEntity = _context.Set <T>(); }
public virtual void Update(T entityToUpdate) { _context.Set <T>().AddOrUpdate(entityToUpdate); }
public DbRepository(string connectionString) { _context = new MockSQLContext(connectionString); dbEntity = _context.Set <T>(); }