XAF–The State of Domain Components Technology in V2010 Vol 2

XAF–The State of Domain Components Technology in V2010 Vol 2
XAF –
V2010 2中领域构件的状况

 

 

 

 

 

http://community.devexpress.com/blogs/garyshort/archive/2010/12/01/xaf-the-state-of-domain-components-technology-in-v2010-vol-2.aspx

During the 10.2 release cycle, we have been closely working with the XPO team to allow pure XPO to support many popular scenarios for Domain Components (DC) models, which were already supported in XAF. Now DC can work with all of the built-in XAF modules, including Scheduling, Tree List Editors, and File Attachment modules.
10.2发布周期,我们与XPO团队密切合作,允许纯XPO支持领域构件模型的许多情景。已经在XAF中支持。现在DC已经能用在内建的模块,包括行程,数编辑器,文件附件模块。

However, there are still some technical obstacles, mostly on the XPO side, which unfortunately prevented us from releasing DC technology in 10.2. Just to keep you up to date with the “state of play”, these issues are:
然而,仍然有有一些不足,在XPO的大多方面,不幸的是阻止我们释放DC技术在10.2.只是为了让你看到最新的发展状况,问题如下:

  • We have no server mode support yet; (仍不支持服务器模式)
  • There is limited functionality in ASP.NET grids; (ASP.NET grids 中功能有限)
  • There are issues surrounding complex database table structures generated for DC models; (生成DC模型的复杂数据库表结构有些问题)
  • We have problems with certain kinds of validation rules. (与某些验证规则有问题)

All of this means that we have not been able to move DC out of beta in 10.2. (所有这些都在10.2测试版存在)

However, it is not all bad news. As a result of our work on DC in 2010, we have been able to provided an example XCRM application, which is intended to demonstrate the use of DC to solve real business requirements. Briefly, this example is an application for sales, which provides both Windows Forms and ASP.NET user interfaces. This application also utilizes the latest shiny 10.2 features like Dashboards, KPI, Pivot-Charts editors, etc. Here is a screenshot of the Windows Forms UI:
然而,不是所有都是坏消息。由于我们努力工作关于DC2010年,我们能提供一个XCRM应用程序实例,有意演示用DC解决真实的业务需求。简单的说,这是一个销售应用程序,提供Windows Forms ASP.NET用户界面。这个应用程序也是用了最新功能,像仪表盘,KPIPivot-Charts编辑器,等等。下面是Windows Forms界面截图:

Another important aspect of the XCRM application is that it demonstrates all the best development practices that should be used when building XAF applications. In particular, it shows you how to write unit and functional tests for every business entity involved.
XCRM应用程序另一个重要方面,当建立XAF应用程序是,它演示了所有最佳开发实践应用。尤其,它展示了如何写涉及到每个业务实体的单元测试和功能测试

It also provides two ready for use business libraries: the DomainComponents.Common – a library with common and base entities for working with XAF built-in modules and DomainComponents.XCRM – a library, containing entities specific for CRM applications. The completed XCRM application contains entities composed from the above base entities. For example, this is what an ICRMInvoice domain component looks like:
它也提供了两个备用的业务类库:DomainComponents.Common-公共库,与XAFn内置模块一起工作的基实体,DomainComponents.XCRM一个类库,包含特定实体的CRM应用程序。以上基实体组成了完整的XCRM应用程序。例如,这是一个ICRMInvoice领域构件如下:

As you see, it is empty by itself and business logic is injected from the base domain components. This is a direct demonstration of the main advantages of DC – multiple inheritance and easy building libraries of reusable domain models. Finally, you can explore the XCRM application at  It can also be launched via the Start menu directly or through the DemoCenter.正如你看到的,它本身是空的,业务逻辑是由基础DC注入。这是证明DC的重要优点之一,多继承,容易建立可重用领域模型库。最后,你可以在%PUBLIC%\Documents\DevExpress 2010.2 Demos\eXpressApp Framework\XCRM\.浏览XCRM应用程序。也可以通过开始菜单或者DemoCenter运行。

Although, these problems look like “showstoppers”, we believe that from 10.2 own wards you can seriously consider using DC for your future projects, if they are scheduled for release in H2 2011. At this time, DC is already stable and we are commitment to fixing all the known issues. It is also possible that we will release these fixes in minor versions so that you can start using and testing this functionality in real-world scenarios ASAP. As soon as we solve the known problems with DC, we will be happy to release it. If all goes according to plan, it will be done in 11.1, but no promises, because as you understand, DC is a quite a new technology and we still need to polish it to be sure that were are ready for real-world scenarios.
虽然,这些问题看起来像“showstoppers,我们相信从10.2开始,你可能要考虑在以后的项目中使用DC,如果他们在2011下半年发布。此时此刻,DC已经稳定,我们承诺修复所有已知的问题。也有可能我们发布这些修补程序的次要版,在现实真实情景,以便你可以使用和测试这个功能。不久我们能用DC解决问题,我们将很开心的发布它。如果一切都在计划之中,将在11.1中做到,但不能承诺,因为正如你所知道的,DC完全是一个新技术,仍需打磨,使其适应真实需求。

Meantime, we are also planning to provide a series of in-depth videos and blogs showing, via the XCRM application, how to implement most common business tasks using DC. This should help you see all of the benefits of this technology in action. With the help of XCRM and related learning materials, brand new users will be able to get started with DC faster, whilst advanced users will be able to learn the technology thoroughly.
此间,我计划提供一些有深度的视频和博客展示,通过XCRM应用程序,用DC如何实现常用业务任务。这会帮助你看到使用这项技术的所有好处。用XCRM帮助和修相关学习材料,全新新用户能快速使用DC,同时高级用户将能彻底了解这项技术。

As always, we are open to your feedback and would be happy to hear how DC works for you, and will be pleased to improve it if there is an issue or a popular scenario not currently covered.

一如往常,我们接受你的意见,并会很高兴听到你如何使用DC工作,并会很乐意地改进它,如果有一个问题或一个流行的方案目前尚未包括在内。

That’s all for this post, so until next time, happy XAF’ing.

这篇文章的全部,直到下一次。

 

欢迎转载,转载请注明出处:http://www.cnblogs.com/Tonyyang/

原文地址:https://www.cnblogs.com/Tonyyang/p/1937937.html