SQL - HighlightIf vs Highlight ?
Hello,
Would someone please point out why HighlightIf fails below?
Ken
Would someone please point out why HighlightIf fails below?
( from x in // ensure a list of non-null first names ( from y in Users .Where (y => y.FirstName.Length>0) select y.FirstName ) .Take(9) select new { // works fine: // FirstName=Util.Highlight(x) // fails: "Object reference not set to an instance of an object" FirstName=Util.HighlightIf(x, a => a.Contains("a")) } )Thanks in advance,
Ken
Comments
I like fluent syntax, but was using (let) query variables in the larger query this snippet came from.