关于RIA服务的一些问题

发布于 2024-10-01 04:17:39 字数 334 浏览 0 评论 0原文

我对 Silverlight 业务应用程序中的 RIA 服务有一些疑问。

  1. 在大多数示例中,业务逻辑非常简单。通常你会 CRUD 一个实体。但是,如果有一个应该满足的工作流程呢?

  2. 假设我们有一个父实体,在插入时它应该包含一些其他实体作为子项。 我应该编写一个接受子项作为其参数的方法,还是如果客户端(SL 应用程序)将它们添加到父实体的 Items 集合中,它就可以解决问题,并且在 InsertParentEntity 方法上我可以获取它们?

  3. 在每次调用操作(如在 WCF 中)时发送对象是否有任何限制?

谢谢。

I've some questions regarding the RIA Services in a Silverlight business application.

  1. In most samples the business logic is really simple. normally you would CRUD an entity. But what if there were a work flow that should meet?

  2. Assume we have a parent entity which on insert it should contain some other entities as child items.
    Should I write a method that accept the child items as its parameter or if the client (SL app) adds them to the Items collection of the parent entity it would do the trick and on the InsertParentEntity method I can get them?

  3. Is there any limits to sending objects on each call to an operation like in WCF?

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

似狗非友 2024-10-08 04:17:39
  1. 这绝对是一种向 CRUD 方法添加业务逻辑的标准 RIA 模式。请随意调用工作流程或其他任何东西。
  2. 如果您在客户端添加父级并向其 EntityCollection 添加一些子级,则当您提交时,所有实体都将显示在服务器上。将为每一个调用一个 Insert 方法(例如,1 个 InsertParent 和 3 个 InsertChild)。
  3. 是的,极限和解与WCF中的相同。
  1. It's definitely a standard RIA pattern to add business logic to your CRUD methods. Feel free to call into workflow or pretty much anything else.
  2. If you add a parent on the client and add some children to it's EntityCollection, when you submit all the entities will show up on the server. An Insert method will get called for each one (for instance, 1 InsertParent and 3 InsertChild).
  3. Yes, the limit and the solution are the same as in WCF.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文