/// <summary>
 /// Deprecated Method for adding a new object to the ShipMethods EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToShipMethods(ShipMethod shipMethod)
 {
     base.AddObject("ShipMethods", shipMethod);
 }
 /// <summary>
 /// Create a new ShipMethod object.
 /// </summary>
 /// <param name="shipMethodID">Initial value of the ShipMethodID property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="shipBase">Initial value of the ShipBase property.</param>
 /// <param name="shipRate">Initial value of the ShipRate property.</param>
 /// <param name="rowguid">Initial value of the rowguid property.</param>
 /// <param name="modifiedDate">Initial value of the ModifiedDate property.</param>
 public static ShipMethod CreateShipMethod(global::System.Int32 shipMethodID, global::System.String name, global::System.Decimal shipBase, global::System.Decimal shipRate, global::System.Guid rowguid, global::System.DateTime modifiedDate)
 {
     ShipMethod shipMethod = new ShipMethod();
     shipMethod.ShipMethodID = shipMethodID;
     shipMethod.Name = name;
     shipMethod.ShipBase = shipBase;
     shipMethod.ShipRate = shipRate;
     shipMethod.rowguid = rowguid;
     shipMethod.ModifiedDate = modifiedDate;
     return shipMethod;
 }
        private void FixupShipMethod(ShipMethod previousValue)
        {
            if (previousValue != null && previousValue.PurchaseOrderHeaders.Contains(this))
            {
                previousValue.PurchaseOrderHeaders.Remove(this);
            }

            if (ShipMethod != null)
            {
                if (!ShipMethod.PurchaseOrderHeaders.Contains(this))
                {
                    ShipMethod.PurchaseOrderHeaders.Add(this);
                }
                if (ShipMethodID != ShipMethod.ShipMethodID)
                {
                    ShipMethodID = ShipMethod.ShipMethodID;
                }
            }
        }