LINQ in Action roller

XQuery a XML Field in a SQL Database using LINQ to SQL

Hello Everyone, I've got an XML field in my SQL Database, and I've loaded the field using LINQ to SQL. (i.e. I have an XElement for the field). I want to use LINQ to XML on this field but when I try to do so I get an error as below, Code Snippet Method 'System.Xml.Linq.XElement Element(System.Xml.Linq.XName)' has no supported translation to SQL. A sample of my code is below (xmlDataField is a XMLData field in a table called myTable in my SQL Server 2005 Database), Code Snippet MyDataContext myDataContext Read More...
Published Sunday, July 27, 2008 6:10 PM by MSDN Forums: LINQ Project General
Anonymous comments are disabled

Featured Item

This Blog

Sponsoring

Syndication