/// <summary>
        /// Create a new optionalproduct object.
        /// </summary>
        /// <param name="id">Initial value of the id property.</param>
        public static optionalproduct Createoptionalproduct(global::System.Int32 id)
        {
            optionalproduct optionalproduct = new optionalproduct();

            optionalproduct.id = id;
            return(optionalproduct);
        }
 /// <summary>
 /// Deprecated Method for adding a new object to the optionalproducts EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTooptionalproducts(optionalproduct optionalproduct)
 {
     base.AddObject("optionalproducts", optionalproduct);
 }