コード例 #1
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);
 }
コード例 #2
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;
 }