コード例 #1
0
        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);
        }
コード例 #2
0
 public bool Destroy(object ShipperID)
 {
     return(Shipper.Destroy(ShipperID) == 1);
 }
コード例 #3
0
 public bool Delete(object ShipperID)
 {
     return(Shipper.Delete(ShipperID) == 1);
 }
コード例 #4
0
        public void Insert(string CompanyName,string Phone)
        {
            Shipper item = new Shipper();

            item.CompanyName = CompanyName;

            item.Phone = Phone;

            item.Save(UserName);
        }
コード例 #5
0
        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);
        }
コード例 #6
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Shippers EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToShippers(Shipper shipper)
 {
     base.AddObject("Shippers", shipper);
 }
コード例 #7
0
 /// <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;
 }