DexExpress eXpressApp 框架的设计和建模

发布于 2024-10-14 04:01:50 字数 340 浏览 2 评论 0原文

DevExpress XAF 为您做了很多基础工作,它根据您的业务创建一个数据库对象,并基于这些对象动态生成 UI,并具有添加、删除、排序等基本功能。

这让我想知道如何正确设计和建模基于此框架的应用程序。我只能对我的业务对象进行建模,或者我可以识别框架提供的功能并将它们包含在详细模型中直至序列图级别,但是通过“外部”调用完成了太多工作,我觉得我会浪费宝贵的时间。

我希望具有针对该特定框架的应用程序设计建模经验的人能够就我应该关注的领域提供一些建议。

The DevExpress XAF does much basis work for you, it creates a database based on your business objects, and dynamically generates a UI based on these, with basic functions like add, delete, sort etc. already present.

This leaves me wondering how to go about properly designing and modelling an application built on this framework. I could only model my business objects, or I could identify functions provided by the framework and include them in a details model down to sequence diagram level, but so much is being done by 'external' calls that I feel I would be wasting valuable time.

I am hoping someone with experience modelling application designs for this specific framework can give me some advice on what areas I should focus on.

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

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

发布评论

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

评论(4

想挽留 2024-10-21 04:01:50

至于DC,正如Leon上面提到的,它与常规持久化类相比有很多好处。如果一切按计划进行,我们将在不久的将来发布域组件技术,并解决所有剩余的问题
如果您觉得学习有困难,请告诉我们您经历过的最困难的部分。我们很乐意对其进行审核,并可能使您和其他用户的操作变得更轻松。

聚苯乙烯
对于延迟回复,我深表歉意;我正在休病假。如果您在 DevExpress 支持中心发布问题,您将收到更及时的回复。

As for DC, as Leon mentioned above, it has many benefits compared to the regular persistent classes. If all goes according to plan, we will release the Domain Components technology in the near future, and resolve all the remaining issues with it.
If you feel that it is hard to learn, please let us know the most difficult parts you experienced. We will be glad to review them and possibly make the things easier for you and other users.

P.S.
I apologize for the delay in responding; I was on sick leave. You will receive more timely responses if you post your questions in the DevExpress Support Center.

差↓一点笑了 2024-10-21 04:01:50

@K教授:
您正在为您的商业模式寻找视觉设计师之类的人选,我说得对吗?
如果是的话,那么恐怕XPO(XAF)目前还没有提供这样的功能。不过,您可以使用免费的 第三方建模工具,例如Liekhus ADO.NET 实体数据模型 XAF 扩展
我希望这些信息对您有所帮助。

@ProfK:
Am I correct that you are looking for something like visual designer for your business models?
If so, then I am afraid that XPO (XAF) does not currently provide such a functionality. However, you can use free third-party tools for modeling, such as Liekhus ADO.NET Entity Data Model XAF Extensions
I hope you find this information helpful.

爱的十字路口 2024-10-21 04:01:50

我使用 XAF 已经快两年了,我对它非常满意。开发应用程序非常快,架构很好,同时支持 Win 和 Web,并且 UI 很棒。与所有框架一样,它有一个学习曲线,但如果您已经熟悉 DevExpress 控件,那么这并不是很难。

正如丹尼斯提到的,大多数行为都可以被覆盖或扩展。关于您的建模问题,如果认为您必须做出的一个重要选择是是否使用他们的领域组件技术。基本上它们有两种方法:从 XAF 或 XPO 基类继承的老式方法或使用 DC。 DC 允许模块清晰分离并允许多重继承。他们可以通过运行时生成类来做到这一点,但它仍然存在一些问题。

该框架附带了一个业务类库,这是一组可能有用的常见类。

当我遇到困难或自己找不到答案时,我总是使用他们出色的支持中心。我遇到的大多数问题已经在该网站上提出和回答。

I'm using XAF for almost two years now and I'm very happy with it. Developing an app is very quick, nice architecture, both Win and Web the same time and great UI. As with all frameworks, it has a learning curve, but if your already familiar with DevExpress controls that it's not very hard.

As Dennis mentioned, most behaviour can be overriden or extended. Regarding your modelling question, if think an important choice you have to make is whether or not you will use their Domain Components technology. Basically they have 2 ways: the old fashion way by inheriting from the XAF or XPO base classes or by using DC. DC allows a clean separation in modules and allows multiple inheritance. They can do that by generating classes runtime, but it still has some issues.

And the framework comes with a Business Class Library, a set of common classes which may be useful.

When I get stuck or cannot find the answer myself, I always use their fantastic Support Center. Most issues I ran into were already asked and answer on that site.

[浮城] 2024-10-21 04:01:50

简而言之,每个 XAF 应用程序都由模块组成。可以有标准(系统)和额外(用户定义)模块。每个模块都可以包含业务对象,即所谓的应用程序模型自定义、编辑器、控制器和操作,以提供附加业务逻辑、自定义 UI 并提供框架部分之间的交互。您可以在上面列出的每个级别上建模和自定义您的应用程序,包括但不限于底层框架的元数据和数据存储。您可以在此处找到有关该框架架构的更多信息:
http://documentation.devexpress.com/#Xaf/CustomDocument2559

我应该强调的是可以覆盖框架的几乎每个部分的行为。例如,创建您自己的详细信息和列表表单编辑器、覆盖某些标准控制器等。

如果您在使用我们的框架时遇到任何其他困难,请随时通过我们的支持中心与我们联系。我们总是很高兴不仅回答您的问题,而且还建议某种技术或设计解决方案,提供一些示例代码等。

Briefly, each XAF application consists of Modules. There can be standard (system) and extra (user-defined) modules. Each Module can contain business objects, so-called Application Model customizations, Editors, Controllers, and Actions to provide additional business logic, customize UI and provide interaction between framework parts. You can model and customize your application on each level listed above, including but not limited by the underlying framework's metadata and data store ones. You can find more information about the framework's architecture here:
http://documentation.devexpress.com/#Xaf/CustomDocument2559

I should emphasize that it is possible to override behavior of almost every part of the framework. For instance, create your own editors for detail and list forms, override certain standard controllers, etc.

If you experience any further difficulties with our framework, feel free to contact us through our Support Center. We will be always glad to not only answer you questions, but advice a certain technical or design solution, provide some example code, etc.

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