Exemplo n.º 1
0
 public void Change(Correction item)
 {
     _SQL.RunQuery(String.Format("UPDATE `{0}` SET ID_MATTYPE={1}, AMOUNT={2}, ID_DEADLINE={3}, PRICE={4} WHERE ID={5};",
         _table, item.MaterialType.ID, item.Amount.ToString().Replace(',', '.'), item.Deadline.ID, item.Price.ToString().Replace(',', '.'), item.ID));
 }
Exemplo n.º 2
0
 public void Add(Correction item)
 {
     Add(item.MaterialType, item.Amount, item.Deadline, item.Price);
 }