I have a XML column in a database and I'd like to query this XML using Linq(toSQL) in an efficient way.
MyTable.Select(e => e.XmlObject.Element("Phone").Value)
... Seems this queries the db for XmlObject but process Element("Phone") part outside the database? How do I create the query so that native SQL XML functions are used? (Do I want that?)
Updated: Would using a sproc be faster that the alternative used above?