Please refer my original post; I have 3 tables with the following relation.
Location --------> SubBrick ----------> GeographyResource
(SubBrickId) (DescriptionId) (Id)
I have defined the fields definition like the below:
ResultsetFields fields = new ResultsetFields(4);
fields.DefineField(LocationFields.Id, 0);
fields.DefineField(ContactInfoFields.Address1, 1);
fields.DefineField(LocationFields.Name, 2);
fields.DefineField(SubBrickNameCustomProperty,3)
Need to know how to get the above customproperty to be used in the defineField method. .I had tried to use Expressions. But i am not able to define the field based on the fields.That subbrickname had been defined as a custom property in location or subbrick entity partial class.
In the above code, LocationId and LocationName can be taken directly from the class LocationFields.
In order to get the Subrickname for a given location, I have to include the SubBrickName in the fields list above. But with the current scenario, I can not refer the SubBrickName of the location directly from the LocationEntity class.
Please also note that, why I have defined the Partial class is, i can't take SubBrickName directly from Subbrick table because in contains only the descriptionId for that subbrick. So based on the descriptionId, I need to take from GeographyResource table.
So, please let me know how to include the Custom Property defined for SubBrickName in the Fields definition, to get the SubBrickName for a given Location or any other solution for the above scenario.