Click or drag to resize

ModelInfoProviderBaseAddEntityInfo Method (String, String, IRelationFactory, IEntityFactoryCore, Int32)

Adds a new entity to the store. The supertype name is enough to build the complete hierarchy.

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.8.0.0 (5.8.21.0111)
Syntax
protected void AddEntityInfo(
	string name,
	string superTypeName,
	IRelationFactory relationFactory,
	IEntityFactoryCore entityFactory,
	int numberOfDistinguishingFieldIndexes
)

Parameters

name
Type: SystemString
name of the entity to add, e.g. "CustomerEntity"
superTypeName
Type: SystemString
the name of the supertype of the passed in entity, e.g. "EmployeeEntity".
relationFactory
Type: SD.LLBLGen.Pro.ORMSupportClassesIRelationFactory
the relation factory of the entity with name, to produce relations to supertype and subtype.
entityFactory
Type: SD.LLBLGen.Pro.ORMSupportClassesIEntityFactoryCore
Entity factory.
numberOfDistinguishingFieldIndexes
Type: SystemInt32
the number of distinguishing field indexes. If this is 0, no pk fields are distinguishing (root), otherwise they're the indexes of the pk fields of the subtype relative to the start of the subtype's fields, so we just pass the amount, as we can then create the list of indexes, starting with 0.
Remarks
TargetPerEntity specific version
See Also