I'm sorry if I seem a bit obtuse about this, but I just don't see it. I downloaded version 5.3 last Thursday. If I take a look at my LLBLGen Pro v5.3\Frameworks\LLBLGen Pro\Templates\SharedTemplates\Net3.5\VB.NET folder\entityIncludeAdapter.template file, I see the following code starting with line 524.:
<[Foreach RelatedEntity OneToMany CrLf]><[If Not MappedFieldRelationIsHidden]>
''' <summary>Gets the EntityCollection with the related entities of type '<[RelatedEntityName]>Entity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.<br/><br/>
''' <[Foreach CustomProperty MappedFieldNameRelation]>
''' <[CustomPropertyName]>: <[CustomPropertyValue]><br/><[NextForeach]></summary>
<TypeContainedAttribute(GetType(<[RelatedEntityName]>Entity))> _
<[ If SettingValueEquals MappedFieldNameRelation "NavigatorPropertyIsPublic" "true"]>Public<[Else]>Friend<[EndIf]> Overridable ReadOnly Property <[MappedFieldNameRelation]> As EntityCollection(Of <[RelatedEntityName]>Entity)
Get
If _<[CaseCamel MappedFieldNameRelation]> Is Nothing Then
_<[CaseCamel MappedFieldNameRelation]> = New EntityCollection(Of <[RelatedEntityName]>Entity)(EntityFactoryCache2.GetEntityFactory(GetType(<[RelatedEntityName]>EntityFactory)))
_<[CaseCamel MappedFieldNameRelation]>.ActiveContext = Me.ActiveContext
<[ If OppositeRelationPresent ]> _<[CaseCamel MappedFieldNameRelation]>.SetContainingEntityInfo(Me, "<[RelatedMappedFieldNameRelation]>")<[ EndIf ]>
End If
Return _<[CaseCamel MappedFieldNameRelation]>
End Get
End Property<[EndIf]><[NextForeach]>
<[Foreach RelatedEntity ManyToMany CrLf]><[If Not MappedFieldRelationIsHidden]>
''' <summary>Gets the EntityCollection with the related entities of type '<[RelatedEntityName]>Entity' which are related to this entity via a relation of type 'm:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.<br/><br/>
''' <[Foreach CustomProperty MappedFieldNameRelation]>
''' <[CustomPropertyName]>: <[CustomPropertyValue]><br/><[NextForeach]></summary>
<TypeContainedAttribute(GetType(<[RelatedEntityName]>Entity))> _<[Foreach Attribute MappedFieldNameRelation]>
<[Attribute]><[NextForeach]>
<[ If SettingValueEquals MappedFieldNameRelation "NavigatorPropertyIsPublic" "true"]>Public<[Else]>Friend<[EndIf]> Overridable ReadOnly Property <[MappedFieldNameRelation]> As EntityCollection(Of <[RelatedEntityName]>Entity)
Get
If _<[CaseCamel MappedFieldNameRelation]> Is Nothing Then
_<[CaseCamel MappedFieldNameRelation]> = New EntityCollection(Of <[RelatedEntityName]>Entity)(EntityFactoryCache2.GetEntityFactory(GetType(<[RelatedEntityName]>EntityFactory)))
_<[CaseCamel MappedFieldNameRelation]>.ActiveContext = Me.ActiveContext
<[CaseCamel MappedFieldNameRelation]>.IsReadOnly = True
CType(<[CaseCamel MappedFieldNameRelation]>, IEntityCollectionCore).IsForMN = True
End If
Return _<[CaseCamel MappedFieldNameRelation]>
End Get
End Property<[EndIf]><[NextForeach]>
<[Foreach RelatedEntity ManyToOne CrLf]><[If Not MappedFieldRelationIsHidden]>
''' <summary>Gets / sets related entity of type '<[RelatedEntityName]>Entity' which has to be set Imports a fetch action earlier. If no related entity is set for this property, null is returned.
''' This property is not visible in databound grids.<br/><br/>
''' <[Foreach CustomProperty MappedFieldNameRelation]>
''' <[CustomPropertyName]>: <[CustomPropertyValue]><br/><[NextForeach]></summary><[Foreach Attribute MappedFieldNameRelation]>
<[Attribute]><[NextForeach]>
<[ If SettingValueEquals MappedFieldNameRelation "NavigatorPropertyIsPublic" "true"]>Public<[Else]>Friend<[EndIf]> Overridable Property <[MappedFieldNameRelation]> As <[RelatedEntityName]>Entity
Get
Return _<[CaseCamel MappedFieldNameRelation]>
End Get
Set
If MyBase.IsDeserializing Then
SetupSync<[MappedFieldNameRelation]>(value)
Else
SetSingleRelatedEntityNavigator(value, "<[RelatedMappedFieldNameRelation]>", "<[MappedFieldNameRelation]>", _<[CaseCamel MappedFieldNameRelation]>, <[If OppositeRelationPresent]>True<[Else]>False<[EndIf]>)
End If
End Set
End Property<[EndIf]><[NextForeach]>
This has the one to many, many to many and many to one navigators. I see the ForEach Attribute in the many to many and many to one navigators, but not there for the one to many navigator. Again, I apologize for pressing on this, but I just don't see it.