DefaultClassOptionsAttribute Class
Sets default options for a class.
Namespace: DevExpress.Persistent.Base
Assembly: DevExpress.ExpressApp.v24.2.dll
NuGet Package: DevExpress.ExpressApp
Declaration
Remarks
The following default options are set when you apply DefaultClassOptionsAttribute
to a business class:
- The corresponding item is added to the navigation control’s Default navigation item. This allows users to display a View with objects of this class.
- The corresponding item is added to the New Action’s Items list. This allows users to create objects of this class when objects of another type are displayed in the View.
- The corresponding item is added to the Data Type drop-down list in the Report Wizard. This allows users to create reports for objects of this class. For more information about how you can create and view reports in an XAF application, refer to the following topics:
- The corresponding item is added to the type list in the Dashboards Data Source Wizard. This allows users to create dashboards for objects of this class. For more information about how you can create, view, and modify Dashboards, refer to the following topics:
If you do not want to set all the options specified above at the same time, use the following attributes:
- CreatableItemAttribute
- NavigationItemAttribute
- VisibleInReportsAttribute
- VisibleInDashboardsAttribute.
See Also