Exemplo n.º 1
0
 /// <summary>
 /// Create a new Carrier object.
 /// </summary>
 /// <param name="carrierID">Initial value of the CarrierID property.</param>
 /// <param name="carrierName">Initial value of the CarrierName property.</param>
 /// <param name="isActive">Initial value of the IsActive property.</param>
 public static Carrier CreateCarrier(global::System.Int32 carrierID, global::System.String carrierName, global::System.Boolean isActive)
 {
     Carrier carrier = new Carrier();
     carrier.CarrierID = carrierID;
     carrier.CarrierName = carrierName;
     carrier.IsActive = isActive;
     return carrier;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Carriers EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCarriers(Carrier carrier)
 {
     base.AddObject("Carriers", carrier);
 }