[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Collapse]eXpressApp Framework
 [Collapse]Getting Started
  [Expand]Basic Tutorial (SimpleProjectManager Application)
  [Collapse]Comprehensive Tutorial (MainDemo Application)
   [Collapse]Business Model Design
     Create a Solution using the Wizard
    [Expand]Business Model Design with Entity Framework
    [Collapse]Business Model Design with eXpress Persistent Objects
      Inherit from the Business Class Library Class (XPO)
      Supply Initial Data (XPO)
      Implement Custom Business Classes and Reference Properties (XPO)
      Add a Class from the Business Class Library (XPO)
      Set a Many-to-Many Relationship (XPO)
      Set a One-to-Many Relationship (XPO)
      Initialize a Property After Creating an Object (XPO)
      Implement Dependent Reference Properties (XPO)
      Implement Property Value Validation in Code (XPO)
   [Expand]Extend Functionality
   [Expand]UI Customization
   [Expand]Extra Modules
   [Expand]Security System
  [Expand]XAF Mobile (Maintenance Mode) Tutorial
 [Expand]Design-Time Features
 [Expand]Task-Based Help
  Frequently Asked Questions (FAQ)
 [Expand]API Reference
[Expand]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

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.


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.

  • In the Exported Types section, locate the Referenced Assemblies | DevExpress.Persistent.BaseImpl.v18.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.

  • 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).


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%\Documents\DevExpress Demos 18.2\Components\eXpressApp Framework\MainDemo by default. The ASP.NET version is available online at http://demos.devexpress.com/XAF/MainDemo/.


Next Lesson: Set a Many-to-Many Relationship (XPO)

Expanded See Also

Is this topic helpful?​​​​​​​