.NET 3.5, C#
I have a web app with a \"search\" feature. Some of the fields that are searchable are first-class columns in the table, but some of them are in fact n
This is not the best, not for all queries, and not completely linq, but works and is fast :
an xml sql field accept the ".ToString", so you can do :
Dim txt as String = "3 "
Return (From P In DC.LPlanningRefs Where P.Details.ToString.Contains(txt) Select P).FirstOrDefault
I use it to limit lines returned, and then, I look for each returned lines