Exemplo n.º 1
0
        public bool ShipMethodDelete(ShipMethod shipmethod)
        {
            return Execute<bool>(dal =>
            {
                ShipMethod shipmethodDelete = dal.ShipMethod.Where(x => x.ShipMethodID == shipmethod.ShipMethodID).FirstOrDefault();
                if (shipmethodDelete != null)
                {
                    dal.ShipMethod.DeleteOnSubmit(shipmethodDelete);
                    dal.SubmitChanges();
                    return true;
                }
                return false;

            });
        }
Exemplo n.º 2
0
        public bool ShipMethodUpdate(ShipMethod shipmethod)
        {
            return Execute<bool>(dal =>
               {
               ShipMethod shipmethodUpdate = dal.ShipMethod.Where(x => x.ShipMethodID == shipmethod.ShipMethodID).FirstOrDefault();
               if (shipmethodUpdate != null)
               {
                   shipmethodUpdate.ShipMethodID = shipmethod.ShipMethodID;
                   shipmethodUpdate.Name = shipmethod.Name;
                   shipmethodUpdate.ShipBase = shipmethod.ShipBase;
                   shipmethodUpdate.ShipRate = shipmethod.ShipRate;
                   shipmethodUpdate.rowguid = shipmethod.rowguid;
                   shipmethodUpdate.ModifiedDate = shipmethod.ModifiedDate;

                   dal.SubmitChanges();
                   return true;
               }
               return false;

               });
        }
 partial void DeleteShipMethod(ShipMethod instance);
 partial void UpdateShipMethod(ShipMethod instance);
 partial void InsertShipMethod(ShipMethod instance);
Exemplo n.º 6
0
 public void ShipMethodUpdate(ShipMethod shipmethod)
 {
     adventureWorks_BC.ShipMethodUpdate(shipmethod);
 }
Exemplo n.º 7
0
 public void ShipMethodAdd(ShipMethod shipmethod)
 {
     adventureWorks_BC.ShipMethodAdd(shipmethod);
 }