This at least did not error, but I am not seeing how to access the related data. I have inspected all of these:
collection[0].GetRelatedData().Count
collection[0].GetDependingRelatedEntities().Count
collection[0].GetDependentRelatedEntities().Count
collection[0].GetAllRelations().Count
collection[0].GetMemberEntityCollections().Count
And all return 0.
Please note that neither the FieldEntityField.Caption, or FrameworkString.StrnName are FK or PK, which is why I could not create the entity using the designer. Does this matter?
I have this view which works fine, and I have an Entity that is based on this view, however in this case I want separate entities for the 2 tables to use for updating purposes.
SELECT ef.enfdId, ef.fdstId, ef.enfdFieldName, fs1.strnValue AS Caption, ef.enfdFormatting, ef.enfdHidden, ef.enfdWidth, ef.enfdMinWidth, ef.enfdMaxWidth,
ef.enfdZorder, ef.DateCreated, ef.LastModified, ef.ModifiedBy, fs1.applId, fs1.langId
FROM dbo.foiEntityField AS ef LEFT OUTER JOIN
dbo.foiFrameworkString AS fs1 ON ef.enfdCaption = fs1.strnName
Thanks!
Danny