Ria 服务与 WCF 数据服务

发布于 2024-08-25 13:28:01 字数 384 浏览 2 评论 0原文

我的团队正在评估更大的商业门户。 (发票、簿记、工资......)

我们都习惯使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

江挽川 2024-09-01 13:28:01

RIA / WCF 并不是要取代 O/R 映射器等。它是以开放格式向另一个应用程序公开数据。不是高端,但基本上是为了集成。恕我直言,将其放入应用程序中是相当愚蠢的,但它是一个很棒的外部接口,特别是当它获得工具支持时。

很好的例子:

  • 银行会计访问。如果我只能使用 Odata 进行家庭银行业务就好了;)并将我的账户报表导入 Excel。
  • 交易;)是的,好的 - 我有一个交易服务器(然后连接到各个经纪人)。我有一个网络前端。我现在也将通过 OData 公开某些数据,因此我可以轻松地在 excel 等中获取内容,甚至使用 silverlight 应用程序来处理某些内容...但我不会在一个应用程序中使用 OData 来替换我的对象基础设施 -太多的悬浮头。
  • Ebay 可以为大客户提供 OData 接口。很高兴了解您的拍卖概况并对您的帐户进行一些基本维护。没什么高性能,但还是有工具支持。 Excel、报表服务很快都支持OData。

如果你从集成的角度来看它,它就很有意义。这不是一个完整的环境——“永远”不起作用。不过,开放具有语义(优于 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:

  • Bank accounting access. If I only could do home banking using Odata ;) And get my account statements into excel.
  • Trading ;) Yeah, ok - I have a trading server (that then connects to various brokers). I have a web front end. I now will expose certain data through OData, too, so I can easily get things out in excel etc., or even use a silverlight application for some stuff... but i will NOT use OData within one application to replace my object infrastructure- way too muc hoverhead.
  • Ebay could provide an OData interface for larger customers. Nice to get an overview over your auctions AND do some basic maintenance on your account. Nothing high performance, but again, TOOLING support. Excel, Report services all soon support OData.

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:

  • Anything I work with has a key per definition
  • I neve rdo many:many relations. I always havean interim object WITH A KEY.... so that I can add properties to it (and if that is only a timestamp).

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文