/// <summary> /// Check to see if there are any related Words, and load them if requested /// </summary> public static void CheckExpandWords(SqlDataManager sdm, IEnumerable <Sentence> sentences, string expandString) { var sentencesWhere = CreateSentenceWhere(sentences); expandString = expandString.SafeToString(); if (String.Equals(expandString, "all", StringComparison.OrdinalIgnoreCase) || expandString.IndexOf("words", StringComparison.OrdinalIgnoreCase) >= 0) { var childWords = sdm.GetAllWords <Word>(sentencesWhere); sentences.ToList() .ForEach(feSentence => feSentence.LoadWords(childWords)); } }