public void TestMethodProduct() { IApplicationContext ctx = ContextRegistry.GetContext(); IBLL.Demo.DemoProductIbo ibo = (IBLL.Demo.DemoProductIbo)ctx.GetObject("DemoProductBo"); ibo.GetProductsList(); }
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); }
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); }
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); }