How to get FkField from <FieldRelationships><FieldFieldRelationship>

Posts   
 
    
Ashutosh
User
Posts: 13
Joined: 03-May-2024
# Posted on: 15-Oct-2025 12:44:37   

How should I get EntityFieldName for MappedFieldNameRelation in place of ??? to set in BaseProperty. when I am looping through EntityField I am getting all the EntityFieldName at once.

<[Foreach RelatedEntity ManyToOne]><[If Not MappedFieldRelationIsHidden]>
        /// <summary> 
        /// Gets / sets related entity of type '<[RelatedEntityName]>Entity' which has to be set using a fetch action earlier. If no related entity
        /// is set for this property, null is returned. This property is not visible in databound grids.
        /// </summary>
        [RelationInfo(ReferencePropertyInRelatedObject = "<[RelatedMappedFieldNameRelation]>", RelationType= "ManyToOne",  BaseProperty="???")]
        public virtual <[RelatedEntityName]>Entity <[MappedFieldNameRelation]>
        {
            get { return (<[RelatedEntityName]>Entity)GetPropertyValue("<[MappedFieldNameRelation]>"); }
            set { SetPropertyValue("<[MappedFieldNameRelation]>", value); }
        }
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39974
Joined: 17-Aug-2003
# Posted on: 16-Oct-2025 09:19:59   

what does it represent? I don't understand what BaseProperty means here

Frans Bouma | Lead developer LLBLGen Pro