Skip to main content
.NET Framework 4.5.2+

ITypesInfo.RegisterEntity(String, Type) Method

Registers a specific Domain Component in the application.

Namespace: DevExpress.ExpressApp.DC

Assembly: DevExpress.ExpressApp.v22.1.dll

Declaration

void RegisterEntity(
    string name,
    Type interfaceType
)

Parameters

Name Type Description
name String

A sting representing a name by which the specified Domain Component is registered.

interfaceType Type

A Type object representing a Domain Component.

Remarks

With the Domain Components Technology you define an interface instead of declaring a regular business class. The actual business class is automatically generated by XAF at run time. The name of a generated business class is specified by the name parameter. The class generated for an interface registered via this method is derived from the DCBaseObject class. You can specify another base persistent class by using an overload of the RegisterEntity method which takes a baseClass parameter.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the RegisterEntity(String, Type) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also