DefaultClassOptionsAttribute Class
Sets default options for a class.
Namespace: DevExpress.Persistent.Base
Assembly: DevExpress.ExpressApp.v21.2.dll
NuGet Package: DevExpress.ExpressApp
Declaration
Remarks
The following default options are set when applying the DefaultClassOptions attribute to a business class:
- The corresponding item is added to the navigation control’s Default navigation item. This allows end-users to display a View with objects of this class.
- The corresponding item is added to the New Action’s Items list. This allows end-users to create objects of this class when objects of another type are currently displayed by the View.
- The corresponding item is added to the Data Type drop-down list on the Report Wizard. This allows end-users to create reports for objects of this class (see Create and View Reports in a WinForms Application).
- The corresponding item is added to the types list in the Dashboards Data Source Wizard. This allows end-users to create dashboards for objects of this class (see Create, View and Modify Dashboards in a WinForms Application and Create, View and Modify Dashboards in an ASP.NET Web Forms Application).
Applying this attribute is equivalent to using the following attributes simultaneously: CreatableItemAttribute, NavigationItemAttribute, VisibleInReportsAttribute and VisibleInDashboardsAttribute.
See Also