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