/// <summary> /// Check to see if there are any related Proficiencies, and load them if requested /// </summary> public static void CheckExpandProficiencies(SqlDataManager sdm, IEnumerable <TelegraphOperator> telegraphOperators, string expandString) { var telegraphOperatorsWhere = CreateTelegraphOperatorWhere(telegraphOperators); expandString = expandString.SafeToString(); if (String.Equals(expandString, "all", StringComparison.OrdinalIgnoreCase) || expandString.IndexOf("proficiencies", StringComparison.OrdinalIgnoreCase) >= 0) { var childProficiencies = sdm.GetAllProficiencies <Proficiency>(telegraphOperatorsWhere); telegraphOperators.ToList() .ForEach(feTelegraphOperator => feTelegraphOperator.LoadProficiencies(childProficiencies)); } }