EntityCore<TFields>.EntityStaticMetaDataBase.AddNavigatorMetaData<TContaining, TCollection> Method (String, Func<TContaining, IEntityCollectionCore>, Action<TContaining, TCollection>, Func<TContaining, IEntityCollectionCore>, Func<IEntityRelation>, Func<IEntityRelation>, String, String, Type, Int32) |
Adds the meta-data for a multi-instance navigator to this meta-data container. This navigator is mapped onto a 1:n relationship. For m:n navigators, use the other overload.
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)
Syntaxprotected void AddNavigatorMetaData<TContaining, TCollection>(
string navigator,
Func<TContaining, IEntityCollectionCore> memberGetterFunc,
Action<TContaining, TCollection> memberSetterFunc,
Func<TContaining, IEntityCollectionCore> propertyGetterFunc,
Func<IEntityRelation> relationshipCreatorFunc,
Func<IEntityRelation> secondRelationshipCreatorFunc,
string aliasStartEntity,
string aliasIntermediateEntity,
Type typeOfRelatedEntity,
int relatedEntityEnumTypeValue
)
where TContaining : IEntityCore
Protected Sub AddNavigatorMetaData(Of TContaining As IEntityCore, TCollection) (
navigator As String,
memberGetterFunc As Func(Of TContaining, IEntityCollectionCore),
memberSetterFunc As Action(Of TContaining, TCollection),
propertyGetterFunc As Func(Of TContaining, IEntityCollectionCore),
relationshipCreatorFunc As Func(Of IEntityRelation),
secondRelationshipCreatorFunc As Func(Of IEntityRelation),
aliasStartEntity As String,
aliasIntermediateEntity As String,
typeOfRelatedEntity As Type,
relatedEntityEnumTypeValue As Integer
)
Parameters
- navigator
- Type: System.String
the name of the navigator the data is for - memberGetterFunc
- Type: System.Func<TContaining, IEntityCollectionCore>
the func used to obtain the value of the member variable of the navigator - memberSetterFunc
- Type: System.Action<TContaining, TCollection>
the func used to set the member variable of the navigator. - propertyGetterFunc
- Type: System.Func<TContaining, IEntityCollectionCore>
the func used to obtain the value from the property of the navigator - relationshipCreatorFunc
- Type: System.Func<IEntityRelation>
the func used to create a new relationship instance for this navigator - secondRelationshipCreatorFunc
- Type: System.Func<IEntityRelation>
The func used to create the second relationship instance for this navigator, the relationship from intermediate entity to related entity - aliasStartEntity
- Type: System.String
The alias to use for the start entity in the 2 relationships which combined form the m:n relationship - aliasIntermediateEntity
- Type: System.String
The alias to use for the intermediate entity in the 2 relationships which combined form the m:n relationship - typeOfRelatedEntity
- Type: System.Type
The type of the related entity of which this natigator returns a collection of - relatedEntityEnumTypeValue
- Type: System.Int32
The EntityType enum value for the related entity this navigator represents
Type Parameters
- TContaining
- The type of the class the navigator is defined in
- TCollection
- The type of the collection this navigator represents
See Also