/// <summary> /// Create a new BeanBag object. /// </summary> /// <param name="id">Initial value of the ID property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="description">Initial value of the Description property.</param> /// <param name="prize">Initial value of the Prize property.</param> /// <param name="dateCreated">Initial value of the DateCreated property.</param> /// <param name="beanBagTypeID">Initial value of the BeanBagTypeID property.</param> public static BeanBag CreateBeanBag(global::System.Int32 id, global::System.String name, global::System.String description, global::System.Int32 prize, global::System.DateTime dateCreated, global::System.Int32 beanBagTypeID) { BeanBag beanBag = new BeanBag(); beanBag.ID = id; beanBag.Name = name; beanBag.Description = description; beanBag.Prize = prize; beanBag.DateCreated = dateCreated; beanBag.BeanBagTypeID = beanBagTypeID; return beanBag; }
/// <summary> /// Deprecated Method for adding a new object to the BeanBags EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToBeanBags(BeanBag beanBag) { base.AddObject("BeanBags", beanBag); }