コード例 #1
0
        public void Update(InventioPage page)
        {
            Pages data = EFAdapter(page);

            using (InventioEntities context = new InventioEntities())
            {
                context.Pages.Attach(data);
                context.Entry(data).State = EntityState.Modified;
                context.SaveChanges();
            }
        }
コード例 #2
0
        public void Update(InventioNavigationNode node)
        {
            Navigation data = EFAdapter(node);

            using (InventioEntities context = new InventioEntities())
            {
                context.Navigation.Attach(data);
                context.Entry(data).State = EntityState.Modified;
                context.SaveChanges();
            }
        }
コード例 #3
0
        public void Update(InventioLayout layout)
        {
            // TODO REVISAR NO TESTEADO

            Layouts data = EFAdapter(layout);

            using (InventioEntities context = new InventioEntities())
            {
                context.Layouts.Attach(data);
                context.Entry(data).State = EntityState.Modified;
                context.SaveChanges();
            }
        }