예제 #1
0
 public void UpdateAirCraft(AirCraft data)
 {
     _AdoTemplate.ExecuteNonQuery(System.Data.CommandType.Text, "update cargoaircraft set kode='" + data.Kode + "', nama='" + data.Nama + "' where guid = '" + data.Guid + "'");
 }
예제 #2
0
 public void AddAirCraft(AirCraft data)
 {
     _AdoTemplate.ExecuteNonQuery(System.Data.CommandType.Text, "insert into cargoaircraft(kode, nama, guid) values ('" + data.Kode + "', '" + data.Nama + "','" + Guid.NewGuid().ToString() + "')");
 }