/// <summary> /// Deprecated Method for adding a new object to the Packages EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToPackages(Package package) { base.AddObject("Packages", package); }
/// <summary> /// Create a new Package object. /// </summary> /// <param name="id">Initial value of the ID property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="setUpCost">Initial value of the SetUpCost property.</param> /// <param name="monthlyCost">Initial value of the MonthlyCost property.</param> /// <param name="createdDate">Initial value of the CreatedDate property.</param> public static Package CreatePackage(global::System.Int32 id, global::System.String name, global::System.Decimal setUpCost, global::System.Decimal monthlyCost, global::System.DateTime createdDate) { Package package = new Package(); package.ID = id; package.Name = name; package.SetUpCost = setUpCost; package.MonthlyCost = monthlyCost; package.CreatedDate = createdDate; return package; }