Exemplo n.º 1
0
 public int InsertCTShipCar(CTShipCar sc)
 {
     CTShipCar ct = db.CTShipCars.SingleOrDefault(n => n.idshipcar == sc.idshipcar && n.idhd == sc.idhd);
     if (ct == null)
     {
         db.CTShipCars.InsertOnSubmit(sc);
         db.SubmitChanges();
         return 1;
     }
     else
     {
         ct.idhd = sc.idhd;
         db.SubmitChanges();
         return 2;
     }
 }
Exemplo n.º 2
0
 partial void DeleteCTShipCar(CTShipCar instance);
Exemplo n.º 3
0
 partial void UpdateCTShipCar(CTShipCar instance);
Exemplo n.º 4
0
 partial void InsertCTShipCar(CTShipCar instance);
Exemplo n.º 5
0
		private void detach_CTShipCars(CTShipCar entity)
		{
			this.SendPropertyChanging();
			entity.ShipCar = null;
		}
Exemplo n.º 6
0
		private void attach_CTShipCars(CTShipCar entity)
		{
			this.SendPropertyChanging();
			entity.ShipCar = this;
		}