Beispiel #1
0
 public int insertShipCar(ShipCar sc)
 {
     try
     {
         db.ShipCars.InsertOnSubmit(sc);
         db.SubmitChanges();
     }
     catch
     {
         return -1;
     }
     return 1;
 }
Beispiel #2
0
 public int updateShipCarForWeb(ShipCar sc)
 {
     try
     {
         ShipCar s = db.ShipCars.SingleOrDefault(n => n.id == sc.id);
         s.idnhanvien = sc.idnhanvien;
         db.SubmitChanges();
     }
     catch
     {
         return -1;
     }
     return 1;
 }
Beispiel #3
0
 partial void DeleteShipCar(ShipCar instance);
Beispiel #4
0
 partial void UpdateShipCar(ShipCar instance);
Beispiel #5
0
 partial void InsertShipCar(ShipCar instance);
Beispiel #6
0
		private void detach_ShipCars(ShipCar entity)
		{
			this.SendPropertyChanging();
			entity.NhanVien = null;
		}
Beispiel #7
0
		private void attach_ShipCars(ShipCar entity)
		{
			this.SendPropertyChanging();
			entity.NhanVien = this;
		}