/// <summary> /// Deprecated Method for adding a new object to the Proposals EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToProposals(Proposal proposal) { base.AddObject("Proposals", proposal); }
/// <summary> /// Create a new Proposal object. /// </summary> /// <param name="proposalID">Initial value of the ProposalID property.</param> /// <param name="artNr">Initial value of the ArtNr property.</param> /// <param name="width">Initial value of the Width property.</param> /// <param name="height">Initial value of the Height property.</param> /// <param name="depth">Initial value of the Depth property.</param> /// <param name="weight">Initial value of the Weight property.</param> /// <param name="clicks">Initial value of the Clicks property.</param> public static Proposal CreateProposal(global::System.Int32 proposalID, global::System.String artNr, global::System.String width, global::System.String height, global::System.String depth, global::System.String weight, global::System.Int32 clicks) { Proposal proposal = new Proposal(); proposal.ProposalID = proposalID; proposal.ArtNr = artNr; proposal.Width = width; proposal.Height = height; proposal.Depth = depth; proposal.Weight = weight; proposal.Clicks = clicks; return proposal; }