public IQueryable <TEntity> GetAll() { return(_dbContext.Set <TEntity>().AsNoTracking()); }
public PaymentRepositoryBase(PaymentContext PaymentContext) { this.PaymentContext = PaymentContext; table = PaymentContext.Set <T>(); }
public TransactionRepository(PaymentContext context) { this.context = context; this.dbSet = context.Set <Transaction>(); }
public Repository(PaymentContext context) { _context = context; _entity = _context.Set <T>(); }
public void Add(T entity) { _dbContext.Set <T>().Add(entity); }
public void Create(Payment payment) { _paymentContext.Set <Payment>().Add(payment); _paymentContext.SaveChanges(); }
protected BaseRepository(PaymentContext context) { Db = context; DbSet = Db.Set <TEntity>(); }
public GenericRepository(PaymentContext context) { _paymentContext = context; _dbSet = context.Set <TEntity>(); }