/// <summary> /// Deprecated Method for adding a new object to the Shippers EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToShippers(Shipper shipper) { base.AddObject("Shippers", shipper); }
/// <summary> /// Create a new Shipper object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="companyName">Initial value of the CompanyName property.</param> /// <param name="contactName">Initial value of the ContactName property.</param> /// <param name="phone">Initial value of the Phone property.</param> public static Shipper CreateShipper(global::System.Int64 id, global::System.String companyName, global::System.String contactName, global::System.String phone) { Shipper shipper = new Shipper(); shipper.Id = id; shipper.CompanyName = companyName; shipper.ContactName = contactName; shipper.Phone = phone; return shipper; }