Is there an easy way to have LINQ iterate through each of the fields in a table and get field properties such as the field name? Basically, I want to just create a simple xml document that represents the db schema like so:
<report>
<nameoffirsttable>
<field1name>field1data</field1name>
<field2name>field2data</field2name>
...
<field234name>field234data</field234name>
</nameoffirsttable>
<nameofsecondtable>
...
</nameofsecondtable>
<anothersecondtable>
...
</anothersecondtable>
</report>
So far, all the examples I have seen in web searches have shown explicit references to named fields.