I guess it is case sensitive??? Seems like that was the issue.
loRelation.ForeignKeyField() =
loRelation.ParentPrimaryKeyField() =
loRelation.ParentBusinessObjectType =