I am trying to figure out how to do a Linq To Entities query on a SQL Server Database which contains an XML datatype:
I want to do a database level query that returns only a specified XML node that contains over 2000 Characters
Is this possible in Linq To Entities?
Update
well i want to do something like this in linq-to-entities but I don't think its possible
var q = from c in Changes
where c.Content.XPathSelectElement("OpsNotes").Value.Length >= 2000;
select c;
inside the sql server database the XML content is a node called "OpsNotes"
<Content Type="AP" Version="1">
<Name>CPU FAIL-OVER</Name>
<Bands>
<Band>BAND DATA</Band>
</Bands>
<StartTime IsCritical="false" IsTimeSet="true">2009-12-06T14:00:00.0000000Z</StartTime>
<Duration>00:30:00</Duration>
<RecurrenceRule>RRULE:[List]{340/2009}</RecurrenceRule>
<OpsNotes>Rationale: Support standard weekly DVIS CPU fail-over</OpsNotes>
</Content>