Esempio n. 1
0
 public override IQuickTransaction CreateQuickTransaction(IQuickTransaction quickTransaction)
 {
     _table.InitializeDatabase();
     if (quickTransaction.Id == 0)
     {
         quickTransaction.Id = _table.AddData(ObjectToIQuickTransactionConverter.ConvertToKeyPairList(quickTransaction));
     }
     else
     {
         _table.AddData(ObjectToIQuickTransactionConverter.ConvertToKeyPairListWithId(quickTransaction));
     }
     return(quickTransaction);
 }
Esempio n. 2
0
 public override void UpdateQuickTransaction(IQuickTransaction quickTransaction)
 {
     _table.InitializeDatabase();
     _table.UpdateData(ObjectToIQuickTransactionConverter.ConvertToKeyPairList(quickTransaction), quickTransaction.Id);
 }