示例#1
0
 public Task AddAsync(RoundUp entity) => _dbContext.Set <RoundUp>().AddAsync(entity);
 public Task <DirectDebitPayment> FindById(Guid posPaymentId)
 {
     return(_dbContext.Set <DirectDebitPayment>().FindAsync(posPaymentId));
 }
示例#3
0
        public async Task Add(BankDetail item)
        {
            await _context.Set <BankDetail>().AddAsync(item);

            await _context.SaveChangesAsync();
        }
示例#4
0
 public virtual IEnumerable <T> GetAll()
 {
     return(dbContext.Set <T>()
            .AsEnumerable());
 }
示例#5
0
        public virtual async Task <T> CreateAsync(T item)
        {
            if (item == null)
            {
                throw new ArgumentNullException("item");
            }

            await _dbContext.Set <T>().AddAsync(item);

            return(item);
        }
 public Task AddAsync(BankTransfer entity) => _dbContext.Set <BankTransfer>().AddAsync(entity);
 public Task AddAsync(CashWithdrawal entity) => _dbContext.Set <CashWithdrawal>().AddAsync(entity);
示例#8
0
 public Task AddAsync(Exchange entity) => _dbContext.Set <Exchange>().AddAsync(entity);
 public AccountRepository(BankingDbContext bankingDbContext)
 {
     this.bankingDbContext = bankingDbContext;
     accounts = bankingDbContext.Set <Account>();
 }
示例#10
0
 public Task AddAsync(Collection entity) => _dbContext.Set <Collection>().AddAsync(entity);