标签: .net wcf namespaces
我正试图获得这个结果:
在WCF项目中,要有多个servicecontract接口(由Product,Order等实体分隔)
Product
Order
但是,在Web Project中,我希望有一个服务客户端实例,我想调用我的方法:
myServiceClient.Products.GetFirst();或 myServiceClient.Orders.GetAllByStatus(5)
myServiceClient.Products.GetFirst();
myServiceClient.Orders.GetAllByStatus(5)
我如何实现这一目标?我尝试了一些东西,但所有这些都远非我想要的。