public TransferLog Add(TransferLog transferLog)
        {
            var res = db.TransferLogs.Add(transferLog);

            db.SaveChanges();
            return(res.Entity);
        }
        public void Add(TransferLog transferLog)
        {
            transferLog.CreateDate = DateTime.Now;

            _context.TransferLogs.Add(transferLog);
            _context.SaveChanges();
        }
Exemple #3
0
 public void SaveTransferLog(TransferLog transferLog)
 {
     if (transferLog != null)
     {
         _ctx.Add(transferLog);
         _ctx.SaveChanges();
     }
 }
        public void Add(TransferLog transferLog)
        {
            transferLog.ConsumerId = System.Diagnostics.Process.GetCurrentProcess().Id.ToString();
            transferLog.GuidId     = Guid.NewGuid().ToString();
            _ctx.TransferLogs.Add(transferLog);

            _ctx.SaveChanges();
        }
        public void Add(TransferLog transferLog)
        {
            _ctx.TransferLogs.Add(new TransferLog
            {
                FromAccount    = transferLog.FromAccount,
                ToAccount      = transferLog.ToAccount,
                TransferAmount = transferLog.TransferAmount
            });

            _ctx.SaveChanges();
        }
Exemple #6
0
 public Task Add(TransferLog transferLog)
 {
     try
     {
         transferDbContext.AddAsync(transferLog);
         transferDbContext.SaveChanges();
     }
     catch (System.Exception)
     {
         ;
     }
     return(Task.CompletedTask);
 }
Exemple #7
0
 public int SaveChanges()
 {
     return(_ctx.SaveChanges());
 }
Exemple #8
0
 public void Add(TransferLogNoSQL transferLog)
 {
     _ctx.TransferLogsNoSQL.Add(transferLog);
     _ctx.SaveChanges();
 }
Exemple #9
0
 public void Add(TransferLog transferLog)
 {
     _transferDbContext.TransferLogs.Add(transferLog);
     _transferDbContext.SaveChanges();
 }
 public bool SaveAll()
 {
     return(_ctx.SaveChanges() > 0);
 }
Exemple #11
0
 public void Add(TransferLog transferLog)
 {
     context.TransferLogs.Add(transferLog);
     context.SaveChanges();
 }
 public void Add(TransferLog transferLog)
 {
     _db.TransferLogs.Add(transferLog);
     _db.SaveChanges();
 }
Exemple #13
0
 public void Add(TransferLog transferLog)
 {
     _tdc.Add(transferLog);
     _tdc.SaveChanges();
 }
 public bool Add(TransferLog log)
 {
     _context.TransferLogs.Add(log);
     return(_context.SaveChanges() > 0);
 }
 public int Add(TransferLog transferLog)
 {
     _ctx.TransferLogs.Add(transferLog);
     return(_ctx.SaveChanges());
 }
Exemple #16
0
 public void Add(TransferLog transferLog)
 {
     ctx.transferLogs.Add(transferLog);
     ctx.SaveChanges();
 }
 public void Add(AccountTransferLog transferLog)
 {
     _context.AccountTransferLogs.Add(transferLog);
     _context.SaveChanges();
 }
 public TransferLog Post(TransferLog transfer)
 {
     _context.Add(transfer);
     _context.SaveChanges();
     return(transfer);
 }
 public void AddTransferLog(TransferLog newLog)
 {
     _transferDbContext.TransferLogs.Add(newLog);
     _transferDbContext.SaveChanges();
 }
 public void Add(TransferLog log)
 {
     _ctx.TransferLogs.Add(log);
     _ctx.SaveChanges();
 }
 public void Add(TransferLog transferLog)
 {
     _context.TransferLog.Add(transferLog);
     _context.SaveChanges();
 }
Exemple #22
0
 public void TransferInsertEmployee(Employee employee)
 {
     _context.Add(employee);
     _context.SaveChanges();
 }
 public void Add(TransferLog transferLog)
 {
     _dbContext.Add(transferLog);
     _dbContext.SaveChanges();
 }
Exemple #24
0
 public void Add(TransferLog log)
 {
     _context.TransferLogs.Add(log);
     _context.SaveChanges();
 }
 public void Add(TransferLog transferLog)
 {
     _ctx.Add(transferLog);
     _ctx.SaveChanges();
 }
Exemple #26
0
 public void PostTransferLog(TransferLog transferLog)
 {
     _transferDb.TransferLogs.Add(transferLog);
     _transferDb.SaveChanges();
 }