tags:

views:

53

answers:

1

Hi,

I have a dynamic SQL string which I want to evaluate and return as a LINQ-object.

Is there any easy way to do this in C#? Have tried googleing it, but haven't found anything.. So all(or most) answers are appreciated.

Best Regards, Robin

A: 

I found it:

IEnumerable<XElement> linq;
linq = (IEnumerable<XElement>)XElement.Parse(RawXmlData.ToString()).Elements();