如何在 WCF RIA 服务框架中的域服务之间共享实体?
如果我要构建一个具有多个域服务的大型 WCF RIA 服务应用程序,我怎么可能拥有某些实体,这些实体在这些域服务之间共享并由它们在不同的上下文中公开。例如,我可以有一个客户实体,它由订单和忠诚度模块/域服务公开。至少我自己对 [ExternalAttribute] 和其他人的实验似乎表明框架对此支持不是很好。
If I would build a big WCF RIA Services application with multiple domain services how could I have certain entities, which are shared between those domain services and exposed by them in different context. For example I could have a Cutomer entity, which is exposed both by Orders and Loyalty modules/domain services. At least my own experiments with [ExternalAttribute] and others seem to indicate that this is not supported by the framework very well.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你看过微软的这个教程吗?
http://msdn.microsoft.com/en-us/库/ff422034(VS.91).aspx
Have you seen this tutorial by Microsoft?
http://msdn.microsoft.com/en-us/library/ff422034(VS.91).aspx