Пример #1
0
 public IQueryable <TEntity> GetAll()
 {
     return(_dbContext.Set <TEntity>().AsNoTracking());
 }
Пример #2
0
 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>();
 }
Пример #5
0
 public void Add(T entity)
 {
     _dbContext.Set <T>().Add(entity);
 }
Пример #6
0
 public void Create(Payment payment)
 {
     _paymentContext.Set <Payment>().Add(payment);
     _paymentContext.SaveChanges();
 }
 protected BaseRepository(PaymentContext context)
 {
     Db    = context;
     DbSet = Db.Set <TEntity>();
 }
Пример #8
0
 public GenericRepository(PaymentContext context)
 {
     _paymentContext = context;
     _dbSet          = context.Set <TEntity>();
 }