示例#1
0
 public void UpdateComodity(Comodity data)
 {
     _AdoTemplate.ExecuteNonQuery(System.Data.CommandType.Text, "update cargocomodity set kode='" + data.Kode + "', nama='" + data.Nama + "' where guid = '" + data.Guid + "'");
 }
示例#2
0
 public void AddComodity(Comodity data)
 {
     _AdoTemplate.ExecuteNonQuery(System.Data.CommandType.Text, "insert into cargocomodity(kode, nama, guid) values ('" + data.Kode + "', '" + data.Nama + "','" + Guid.NewGuid().ToString() + "')");
 }