Exemple #1
0
        /// <summary>
        /// Adds the brand.
        /// </summary>
        /// <param name="newBrand">The new brand.</param>
        public void AddBrand(string newBrand)
        {
            using (EntityConnection connection = DBConnection.GetEntityConnection(this.ServerURI))
            {
                BourseEntities context = new BourseEntities(connection);

                context.BrandReferencesSet.AddObject(new BrandReferences()
                {
                    Name = newBrand
                });

                context.SaveChanges();
            }
        }
Exemple #2
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();
            }
        }