I am developing at WP7 c# linq and XML. This query below doesn’t work (Cannot convert type ‘bool’ to ‘string’). I need some easy usable equivalent to SQL Like operator. Operator == works well
var data = from query in loadedData.Descendants("Row")
where ((string)query.Element("Names").Value.Contains("Joh"))
select new Kalendars
{
myDate = (int)query.Element("Date"),
myMonth = (string)query.Element("Month"),
...
change:
to:
or you might be able to use SqlMethods.Like