ModelInfoProviderBase.AddEntityInfo 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.10.0.0 (5.10.0)
Syntaxprotected 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: System.String
name of the entity to add, e.g. "CustomerEntity" - superTypeName
- Type: System.String
the name of the supertype of the passed in entity, e.g. "EmployeeEntity". - relationFactory
- Type: SD.LLBLGen.Pro.ORMSupportClasses.IRelationFactory
the relation factory of the entity with name, to produce relations to supertype and subtype. - entityFactory
- Type: SD.LLBLGen.Pro.ORMSupportClasses.IEntityFactoryCore
Entity factory. - numberOfDistinguishingFieldIndexes
- Type: System.Int32
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.
RemarksTargetPerEntity specific version
See Also