.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

ITypesInfo.RegisterEntity(String, Type, Type) Method

Registers a specific Domain Component in the application.

Namespace: DevExpress.ExpressApp.DC

Assembly: DevExpress.ExpressApp.v21.1.dll

Declaration

void RegisterEntity(
    string name,
    Type interfaceType,
    Type baseClass
)

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.

baseClass Type

A Type object representing a type used as the generated class’ ancestor.

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 class specified by the baseClass parameter. The list of available base classes is provided in the Base Persistent Classes topic. There are other overloads of RegisterEntity, which do not take the baseClass parameter, and use the DCBaseObject class as the ancestor.

See Also