score:1
Accepted answer
As an alternative to what you are trying, you can use a C# command object and run the below SQL directly on the table:
SELECT UserName
, IntegrationResults.n.value('UpdateResultDescription[1]','VARCHAR(200)') as UpdateResultDescription
FROM MyTable
outer apply MyTable.XML_Response.nodes('/IntegrationResults') AS IntegrationResults(n);
score:1
thank you everyone, I was able to find a solution:
.select(x => new
{
x.UserName,
UpdateResult = x.MyTable.XML_Response.Element("UpdateResult").Value,
UpdateResultDescription = x.MyTable.XML_Response.Element("UpdateResultDescription").Value,
});
Source: stackoverflow.com
Related Articles
- Querying SQL table with LINQ and XElement
- Querying external data source with LINQ
- Linq and EF: Querying to get results on one to many relationships: Selecting table with foreign Key
- Querying DataColumnCollection with LINQ
- Casting to a derived type in a LINQ to Entities query with Table Per Hierarchy inheritance
- Find an XElement with a certain attribute name and value with LINQ
- How to avoid memory overflow when querying large datasets with Entity Framework and LINQ
- Linq to Entity Join table with multiple OR conditions
- Deleting rows in a table with Linq to SQL
- How to get the latest date inserted from the table with Linq to entities
- LINQ with Querying "Memory"
- LINQ table join with entity Framework
- Querying elastic search with linq using NEST
- Joining two tables with LINQ while also returning null records from the second table
- querying existing ListView items with LINQ
- LINQ Source Code Available
- Read huge table with LINQ to SQL: Running out of memory vs slow paging
- Create table with Linq to Sqlite (linq2db)
- line number while querying with linq
- linq join table with collection
- Linq with where clause in many-to-many EF Code First object
- how to create a pivot table with dynamic column using linq tree expression
- How to include one specific row from another table with LINQ to Entities
- subtract columns in a table with LINQ
- Querying xml child elements with prefixed namespace using LINQ to XML
- Querying a Single Column with LINQ
- LINQ querying nested dictionary with multiple key value selection in C#
- Exception in a CRM LINQ query with joins. Attribute in second table doesn't exist
- Querying and Filtering Array of JObjects with Linq
- LINQ subselect in table with composite key
- Including a percent calculation in LINQ query
- C# : LINQ query to list all empty properties of a class
- LinqToSQL and auditing changed fields
- Linq to get distinct subdirectories from list of paths
- InvalidOperationException: type 'System.String' referenced from scope '', but it is not defined
- LINQ: Getting Keys for a given list of Values from Dictionary and vice versa
- How to check format of a string before feeding it to Convert.DateTime()
- Linq and Repository pattern -- not getting how to apply Join method
- Linq to EF - Unsupported Functions
- Any alternative for this 'Where' LINQ query
- Filtering by 1 boolean value from 2 values from interface
- What is the difference between the two linq query
- How to get the values of child nodes of multiple identical nodes of XML with Linq to XML
- Copy List to Different List Using LINQ
- EF LINQ query master-details into new model
- Linq - where a record contains any items within another collection
- LINQ Contains Case Insensitive
- Plain ArrayList Linq c# 2 syntaxes (need a conversion)
- Scenario to split and create new row in Datatable?
- Linq: the query with Grouping, having and Max