Ria 服务与 WCF 数据服务
我的团队正在评估更大的商业门户。 (发票、簿记、工资......)
我们都习惯使用 DDD、O/R 映射器,NHibernate 作为我们的首选。 我们选择与 CompositeWPF 合作,以保持业务门户中所有模块和部分系统之间的模块化。
现在我们已经评估了 Ria Services,并对它如何以面向数据的方式工作感到有点失望,面向数据在面向服务的场景中可以很好,但我们认为我们可以使用面向对象的方法,并且我们认为我们可以使用 OO 方法获得比 DO 方法复杂性更低的应用程序。 例如,它不允许值对象、多对多关系、一切都需要有键等等。
我们还没有研究过 WCF 数据服务,所以我们的问题是 WCF 数据服务是我们的答案吗?它与 Silverlight 4 集成良好吗?我们可以以面向对象的方式使用它吗?
My Team are evaluation to a bigger Business portal. (Invoicing, Bookkeeping, Salaries.....)
We are all used to work with DDD, O/R mappers with NHibernate as our first choice.
We have chosen to work with CompositeWPF to keep modularity between all modules and part system in the business portal.
Now we have evaluated Ria Services and are kind of disappointed how it works in a Data Oriented way, Data Oriented can be good in a service oriented scenario, but we feel that we can with an Object Oriented approach to, and we feel that we can get an application with less complexity with the OO approach than the DO approach.
For example it doesn't allow Value Objects, Many-to-many relations, everything needs to have keys and so on.
We haven't looked at WCF Data Services yet so our question is WCF Data Services our answere? Does it integrate well with Silverlight 4? Can we work with it in a OO manner?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
RIA / WCF 并不是要取代 O/R 映射器等。它是以开放格式向另一个应用程序公开数据。不是高端,但基本上是为了集成。恕我直言,将其放入应用程序中是相当愚蠢的,但它是一个很棒的外部接口,特别是当它获得工具支持时。
很好的例子:
如果你从集成的角度来看它,它就很有意义。这不是一个完整的环境——“永远”不起作用。不过,开放具有语义(优于 Web 服务 - 标准化查询和过滤逻辑)和工具支持的应用程序是一个很好的标准化。
不过,不知何故,我并没有真正遇到你提到的很多项目的很多问题:
这些服务是面向数据的,而且说真的——我喜欢它们。我是 OO 的忠实粉丝,但工具支持使其成为应用程序的完美外部接口。
RIA / WCF is not about replacing O/R mappers etc. It is about exposing data in an open format to another application. Not high end, but basically for integration. It is IMHO pretty stupid to put that within an application, but it is a great external interface, especially as it gets tooling support.
Good examples:
If you look at it from that integration point of view it makes a LOT mroe sense. It is not a full environment - that "never" works. It is a great standardization, though, to open up an application with semantics (better than web services - standardized query and filter logic) AND tooling support.
I somehow dont really run into many problems with a lot of items you mention, though:
The servies ARE data oriented, and seriously - I love them. I am a big OO fan, but the tooling support makes that a PERFECT external interface for applications.