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