The requested page is not available for the requested platform. You are viewing the content for Default platform.

ITypesInfo.GenerateEntities(String) Method

Generates actual business classes into a specified assembly, based on the registered Domain Components.

Namespace: DevExpress.ExpressApp.DC

Assembly: DevExpress.ExpressApp.v19.1.dll

Declaration

void GenerateEntities(
    string generatedAssemblyFile
)
Sub GenerateEntities(
    generatedAssemblyFile As String
)

Parameters

Name Type Description
generatedAssemblyFile String

A string specifying the name of the assembly into which actual classes will be generated.

Remarks

This method generates business classes based on the Domain Components registered via the ITypesInfo.RegisterEntity method into the assembly specified by the generatedAssemblyFile parameter. This assembly is used for caching purposes, so that actual business classes are not regenerated on each application start.

The GenerateEntities method is used internally in XAF, and normally, it should not be called from your code. However, when creating unit tests for Domain Components, you need to call the GenerateEntities method, so that you can instantiate them. To see an example of using this method, refer to the How to: Test Validation Rules help topic.

See Also