/// <summary> /// Check to see if there are any related Repeaters, and load them if requested /// </summary> public static void CheckExpandRepeaters(SqlDataManager sdm, IEnumerable <MCDevice> mCDevices, string expandString) { var mCDevicesWhere = CreateMCDeviceWhere(mCDevices); expandString = expandString.SafeToString(); if (String.Equals(expandString, "all", StringComparison.OrdinalIgnoreCase) || expandString.IndexOf("repeaters", StringComparison.OrdinalIgnoreCase) >= 0) { var childRepeaters = sdm.GetAllRepeaters <Repeater>(mCDevicesWhere); mCDevices.ToList() .ForEach(feMCDevice => feMCDevice.LoadRepeaters(childRepeaters)); } }