internal static RelationCollection GetRelationsForField(string fieldName) { RelationCollection toReturn = new RelationCollection(); switch(fieldName) { case "Poll": toReturn.Add(Relations.PollEntityUsingPollId); break; case "PollAnswerLocalizations": toReturn.Add(Relations.PollAnswerLocalizationEntityUsingPollAnswerId); break; default: break; } return toReturn; }