public void UpdateConsumer() { IApplicationContext ctx = ContextRegistry.GetContext(); IBLL.Owner.ConsumerIbo ibo = (IBLL.Owner.ConsumerIbo)ctx.GetObject("ConsumerBo"); Entity.Owner.Consumer consumer = new Entity.Owner.Consumer(); consumer.CId = 2; consumer.LevelId = 1; consumer.CName = "wanghewei"; consumer.CPassword = "******"; ibo.UpdateConsumer(consumer); }