Ejemplo n.º 1
0
        public void GetProductsById()
        {
            IApplicationContext ctx = ContextRegistry.GetContext();

            IBLL.Demo.DemoProductIbo ibo    = (IBLL.Demo.DemoProductIbo)ctx.GetObject("DemoProductBo");
            Entity.Demo.DemoProduct  entity = new Entity.Demo.DemoProduct();
            entity = ibo.GetProductsById(2);
        }
Ejemplo n.º 2
0
        public void InsertProducts()
        {
            IApplicationContext ctx = ContextRegistry.GetContext();

            IBLL.Demo.DemoProductIbo ibo    = (IBLL.Demo.DemoProductIbo)ctx.GetObject("DemoProductBo");
            Entity.Demo.DemoProduct  entity = new Entity.Demo.DemoProduct();
            entity.PCode = "DemoCode";
            ibo.InsertProducts(entity);
        }
Ejemplo n.º 3
0
        public void UpdateProducts()
        {
            IApplicationContext ctx = ContextRegistry.GetContext();

            IBLL.Demo.DemoProductIbo ibo    = (IBLL.Demo.DemoProductIbo)ctx.GetObject("DemoProductBo");
            Entity.Demo.DemoProduct  entity = new Entity.Demo.DemoProduct();
            entity.PId   = 2;
            entity.PCode = "CodeUpdate";
            ibo.UpdateProducts(entity);
        }