Skip to main content
.NET 6.0+

DevExpress v24.1 Update — Your Feedback Matters

Our What's New in v24.1 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DomainComponentAttribute Class

Specifies that a target class should be registered in the types info subsystem and should affect Application Model construction.

Namespace: DevExpress.ExpressApp.DC

Assembly: DevExpress.ExpressApp.v24.1.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

[AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface, Inherited = true)]
public class DomainComponentAttribute :
    Attribute

#Remarks

Participation in generation of the Application Model means that the BOModel node will expose a child node corresponding to the DomainComponentAttribute target. The Views node will contain ListView and DetailView nodes for the DomainComponentAttribute target.

You do not need to use the DomainComponentAttribute attribute in the following cases:

  • The target is an XPO persistent class declared within an XAF module.
  • The target is an Entity Framework class registered in a DbContext which is declared within an XAF module.

These classes are collected and registered automatically.

However, the DomainComponentAttribute is required when you declare a non-persistent class and want to display Views of this class in a UI.

#Inheritance

Object
Attribute
DomainComponentAttribute
See Also