/// <summary> /// Deprecated Method for adding a new object to the TrackingNumbers EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToTrackingNumbers(TrackingNumber trackingNumber) { base.AddObject("TrackingNumbers", trackingNumber); }
/// <summary> /// Create a new TrackingNumber object. /// </summary> /// <param name="trackingNumberId">Initial value of the TrackingNumberId property.</param> /// <param name="trackingNumber1">Initial value of the TrackingNumber1 property.</param> /// <param name="orderId">Initial value of the OrderId property.</param> /// <param name="trackingNumberTypeId">Initial value of the TrackingNumberTypeId property.</param> public static TrackingNumber CreateTrackingNumber(global::System.Int32 trackingNumberId, global::System.String trackingNumber1, global::System.Int32 orderId, global::System.Int32 trackingNumberTypeId) { TrackingNumber trackingNumber = new TrackingNumber(); trackingNumber.TrackingNumberId = trackingNumberId; trackingNumber.TrackingNumber1 = trackingNumber1; trackingNumber.OrderId = orderId; trackingNumber.TrackingNumberTypeId = trackingNumberTypeId; return trackingNumber; }