zoukankan      html  css  js  c++  java
  • Add a Class from the Business Class Library 从业务类库添加类 (XPO)

    In this lesson, you will learn how to use business classes from the Business Class Library as is. For this purpose, you will add the Event business class to the application.

    在本课中,您将学习如何使用来自 Business 类库中的业务类。为此,您将事件业务类添加到应用程序。

    Note
    Before proceeding, take a moment to review the Inherit from the Business Class Library Class (XPO) lesson.
    • In the Solution Explorer, find the Module.cs (Module.vb) file within the MySolution.Module project. Double-click it to invoke the Module Designer.

    注意
    在继续之前,请花点时间复习从业务类 (XPO) 课程继承。

    • 在解决方案资源管理器中,在 MySolution.模块项目中查找Module.cs(模块.vb)文件。双击以调用模块设计器。

    Tutorial_BMD_Lesson4_0_0

    • In the Exported Types section, locate the Referenced Assemblies | DevExpress.Persistent.BaseImpl.v19.2 | Event node. Select it and press the SPACEBAR, or right-click it and choose Use Type in Application in the invoked context menu. The node will be marked in bold. This means that the Event business class will be added to the Application Model, and this class will take part in the UI construction process. The use of extra modules is detailed in the Extra Modules section of this tutorial.

    • 在"导出的类型"部分中,找到引用的程序集 |开发快车.持久.BaseImpl.v19.2 |事件节点。选择它并按空格键,或右键单击它,并在调用的上下文菜单中选择"在应用程序中使用类型"。节点将以粗体标记。这意味着事件业务类将添加到应用程序模型中,此类将参与 UI 构造过程。本教程的"额外模块"部分详细介绍了额外模块的使用。

      Tutorial_BMD_Lesson4_0

    • Run the WinForms or ASP.NET application and note that the Scheduler Event navigation item is created, as the Event class has the NavigationItemAttribute applied. Note that it may be necessary to add other classes from the Business Class Library to the navigation manually (see the Add an Item to the Navigation Control topic).

    • 运行 WinForms 或ASP.NET应用程序,并注意创建计划程序事件导航项,因为事件类已应用了导航项属性。请注意,可能需要手动将业务类库中的其他类添加到导航中(请参阅向导航控制主题添加项目)。

      Tutorial_BMD_Lesson4_10

    Tip

    XAF has a special Scheduler module contains List Editor that uses the Scheduler Control (Win/Web) to display and manage Event business objects in XAF applications. Refer to the Add the Scheduler Module lesson to learn how to use it in your application.

    You can see the changes made in the Main Demo installed with XAF. The MainDemo application is installed in %PUBLIC%DocumentsDevExpress Demos 19.2ComponentseXpressApp FrameworkMainDemo by default. The ASP.NET version is available online at http://demos.devexpress.com/XAF/MainDemo/

    .提示

    XAF 具有一个特殊的计划程序模块,其中包含列表编辑器,该编辑器使用计划程序控件 (Win/Web) 在 XAF 应用程序中显示和管理事件业务对象。请参阅添加计划程序模块课程,了解如何在应用程序中使用它。

    您可以在使用 XAF 安装的主演示中看到所做的更改。默认情况下,主演示应用程序安装在 %PUBLIC%_文档_DevExpress 演示 19.2_组件_eXpressApp 框架_MainDemo 中。ASP.NET版本可在 http://demos.devexpress.com/XAF/MainDemo/ 在线获取

    .

  • 相关阅读:
    野生的男人,家养的猪
    能在xcode5中开发基于IOS7sdk的应用程序兼容ios4.3之后的系统吗?
    ios开发怎样才能做到代码和界面彻底分离,方便换肤?
    如何解决iOS6、iOS7 3.5寸和4.0寸屏的适配问题?不要写两个xib文件
    哪些听起来很牛逼的互联网理念!
    iOS 使用宏 常量 报错 expected expression
    ios测试宏指令出错:“Expected identefier”
    某个 页面覆盖了 UITabBar 的tabItem的解决办法
    ios(包括6、7)应用程序引用系统通讯录的方法 [亲测可行]
    ios 获得通讯录中联系人的所有属性 亲测,可行 兼容io6 和 ios 7
  • 原文地址:https://www.cnblogs.com/foreachlife/p/AddClassFromBusinessClassLibrary.html
Copyright © 2011-2022 走看看