Original: RIA-Silverlight 3 Development Framework-2

Source: Internet
Author: User

In RIA-Silverlight 3ProgramIn the development architecture-1, the development of relevant programs for composite entities is too complex.

The architecture of applications added to the navigation attribute is updated as follows:

UI-businesscontex (entity)-domaincontext (entity)-domainservice-objectcontext-Database

The following is a small system. I have no good solutions for many systems, such as EDM objectcontext and domainservice.

1. Database: design the primary/foreign key relationships between tables. For more information, see the design of orders, order details, products, and customer tables in northwind.

2. objectcontext: a database can correspond to an EDM objectcontext.

3. domainservice: An EDM objectcontext corresponds to a domainservice, which can be implemented using the distribution class partial.

Note: the reason for the design of objectcontext and domainservice is that if you want to apply the navigation attribute on the Silverlight side, the related entity must be located in a domainservice. However, some entity will run through the entire system, or the requirement is unclear about which domainservie The entity should be placed in. Currently, I have not figured out how to design objectcontext and domainservice. This is just a lazy method.

4. businesscontex (entity)-domaincontext (entity): according to the above design, domaincontext may have many entity and related operations. To facilitate UI use, businesscontex will be like a subset of domaincontext, it is used to operate the entity of a specific business. It is mainly the encapsulation of load and submit.

5. UI: communicates with businesscontex entities or composite entities. entityqurey cannot appear in the UI.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.