예제 #1
0
        public void Create(DalSellingPointCategory e)
        {
            var SellingPointCategory = new SellingPointCategory()
            {
                SellingPointCategoryID   = e.Id,
                SellingPointCategoryName = e.SellingPointCategoryName
            };

            Context.Set <SellingPointCategory>().Add(SellingPointCategory);
        }
예제 #2
0
        public void Update(DalSellingPointCategory e)
        {
            var SellingPointCategory = new SellingPointCategory()
            {
                SellingPointCategoryID   = e.Id,
                SellingPointCategoryName = e.SellingPointCategoryName
            };

            SellingPointCategory = Context.Set <SellingPointCategory>().Single(i => i.SellingPointCategoryID == e.Id);

            SellingPointCategory.SellingPointCategoryName = e.SellingPointCategoryName;
        }