/// <summary>
 /// Create a new Sell_List object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="creator">Initial value of the Creator property.</param>
 /// <param name="remarks">Initial value of the Remarks property.</param>
 /// <param name="numberClothes">Initial value of the NumberClothes property.</param>
 /// <param name="numberToys">Initial value of the NumberToys property.</param>
 public static Sell_List CreateSell_List(global::System.Int32 id, global::System.String creator, global::System.String remarks, global::System.Int32 numberClothes, global::System.Int32 numberToys)
 {
     Sell_List sell_List = new Sell_List();
     sell_List.Id = id;
     sell_List.Creator = creator;
     sell_List.Remarks = remarks;
     sell_List.NumberClothes = numberClothes;
     sell_List.NumberToys = numberToys;
     return sell_List;
 }
Пример #2
0
 public NewListViewModel()
 {
     ListBO = new Sell_List();
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the Sell_ListSet EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToSell_ListSet(Sell_List sell_List)
 {
     base.AddObject("Sell_ListSet", sell_List);
 }
Пример #4
0
        /// <summary>
        /// Saves the list.
        /// </summary>
        /// <param name="sell_List">The sell_ list.</param>
        /// <exception cref="System.NotImplementedException"></exception>
        public void SaveList(Sell_List sell_List)
        {
            using (EntityConnection connection = DBConnection.GetEntityConnection(this.ServerURI))
            {
                BourseEntities context = new BourseEntities(connection);

                context.Sell_ListSet.AddObject(sell_List);

                context.SaveChanges();
            }
        }