Registers entityType as business entity.

Namespace: Xafari
Assembly: Xafari.XF (in Xafari.XF.dll)

Syntax

C#

public EntityInfo RegisterEntity(
   TypeentityType,
   stringns = null,
   TypebaseType = null,
   stringentityName = null
)

Parameters

entityType

Registers this entityType.

ns

Specifies namespace for entity table.

baseType

Specifies base type.

entityName

Specifies entity table name.

 

 

Return Value

EntityInfo object for registered entity.

 

Exceptions

Exception type

Condition

ArgumentNullException

Occurs if entityType contains null.

InvalidOperationException

Occurs if entityType is non persistent.

See Also