Example #1
0
 /// <summary>
 /// Create a new Shipment object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="exporterId">Initial value of the ExporterId property.</param>
 /// <param name="buyerId">Initial value of the BuyerId property.</param>
 /// <param name="commodityId">Initial value of the CommodityId property.</param>
 public static Shipment CreateShipment(global::System.Int32 id, global::System.Int32 exporterId, global::System.Int32 buyerId, global::System.Int32 commodityId)
 {
     Shipment shipment = new Shipment();
     shipment.Id = id;
     shipment.ExporterId = exporterId;
     shipment.BuyerId = buyerId;
     shipment.CommodityId = commodityId;
     return shipment;
 }
Example #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Shipments EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToShipments(Shipment shipment)
 {
     base.AddObject("Shipments", shipment);
 }