Esempio n. 1
0
 public int insertShipCar(ShipCar sc)
 {
     try
     {
         db.ShipCars.InsertOnSubmit(sc);
         db.SubmitChanges();
     }
     catch
     {
         return -1;
     }
     return 1;
 }
Esempio n. 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;
 }
Esempio n. 3
0
 partial void DeleteShipCar(ShipCar instance);
Esempio n. 4
0
 partial void UpdateShipCar(ShipCar instance);
Esempio n. 5
0
 partial void InsertShipCar(ShipCar instance);
Esempio n. 6
0
		private void detach_ShipCars(ShipCar entity)
		{
			this.SendPropertyChanging();
			entity.NhanVien = null;
		}
Esempio n. 7
0
		private void attach_ShipCars(ShipCar entity)
		{
			this.SendPropertyChanging();
			entity.NhanVien = this;
		}