コード例 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the ShipmentSet EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToShipmentSet(Shipment shipment)
 {
     base.AddObject("ShipmentSet", shipment);
 }
コード例 #2
0
 /// <summary>
 /// Create a new Shipment object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="status">Initial value of the Status property.</param>
 /// <param name="shippedDate">Initial value of the ShippedDate property.</param>
 /// <param name="deliveredDate">Initial value of the DeliveredDate property.</param>
 public static Shipment CreateShipment(global::System.Int32 id, global::System.String status, global::System.String shippedDate, global::System.String deliveredDate)
 {
     Shipment shipment = new Shipment();
     shipment.Id = id;
     shipment.Status = status;
     shipment.ShippedDate = shippedDate;
     shipment.DeliveredDate = deliveredDate;
     return shipment;
 }