public void Update(int ShipperID, string CompanyName, string Phone) { Shipper item = new Shipper(); item.MarkOld(); item.IsLoaded = true; item.ShipperID = ShipperID; item.CompanyName = CompanyName; item.Phone = Phone; item.Save(UserName); }
public bool Destroy(object ShipperID) { return(Shipper.Destroy(ShipperID) == 1); }
public bool Delete(object ShipperID) { return(Shipper.Delete(ShipperID) == 1); }
public void Insert(string CompanyName,string Phone) { Shipper item = new Shipper(); item.CompanyName = CompanyName; item.Phone = Phone; item.Save(UserName); }
public void Update(int ShipperID,string CompanyName,string Phone) { Shipper item = new Shipper(); item.MarkOld(); item.IsLoaded = true; item.ShipperID = ShipperID; item.CompanyName = CompanyName; item.Phone = Phone; item.Save(UserName); }
/// <summary> /// Deprecated Method for adding a new object to the Shippers EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToShippers(Shipper shipper) { base.AddObject("Shippers", shipper); }
/// <summary> /// Create a new Shipper object. /// </summary> /// <param name="shipperID">Initial value of the ShipperID property.</param> /// <param name="companyName">Initial value of the CompanyName property.</param> public static Shipper CreateShipper(global::System.Int32 shipperID, global::System.String companyName) { Shipper shipper = new Shipper(); shipper.ShipperID = shipperID; shipper.CompanyName = companyName; return shipper; }