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