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.6.0.0 (5.6.19.0117)
Syntax protected void AddEntityInfo(
string name,
string superTypeName,
IRelationFactory relationFactory,
IEntityFactoryCore entityFactory,
int numberOfDistinguishingFieldIndexes
)
Protected Sub AddEntityInfo (
name As String,
superTypeName As String,
relationFactory As IRelationFactory,
entityFactory As IEntityFactoryCore,
numberOfDistinguishingFieldIndexes As Integer
)
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