<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>D-Blog &#187; DBML</title>
	<atom:link href="http://cubicthoughts.com/tag/dbml/feed/" rel="self" type="application/rss+xml" />
	<link>http://cubicthoughts.com</link>
	<description>just about anything...</description>
	<lastBuildDate>Tue, 29 Nov 2011 23:48:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>LINQ query to get all the column names in the DBML tables</title>
		<link>http://cubicthoughts.com/2008/10/31/linq-query-to-get-all-the-column-names-in-the-dbml-tables/</link>
		<comments>http://cubicthoughts.com/2008/10/31/linq-query-to-get-all-the-column-names-in-the-dbml-tables/#comments</comments>
		<pubDate>Fri, 31 Oct 2008 05:51:00 +0000</pubDate>
		<dc:creator>Deepak Vasa</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Column Names]]></category>
		<category><![CDATA[DBML]]></category>
		<category><![CDATA[LINQ]]></category>
		<category><![CDATA[Row Names]]></category>
		<category><![CDATA[Table Names]]></category>

		<guid isPermaLink="false">http://cubicthoughts.com/?p=90</guid>
		<description><![CDATA[// LINQ query to get all the column names for every Table var model = new AttributeMappingSource().GetModel(typeof(ReportDBMLClassesDataContext)); int i = 0; ArrayList lblList = new ArrayList(); foreach (var mt in model.GetTables()) { i++; Label lbl = new Label(); lbl.Text = mt.TableName.ToString(); lbl.ID = &#8220;lbl&#8221; + i; Panel1.Controls.Add(lbl); Panel1.Controls.Add(new LiteralControl(&#8220;&#60;br&#62;&#8221;)); int r = 0; foreach (var [...]]]></description>
			<content:encoded><![CDATA[<p>// LINQ query to get all the column names for every Table<br />
var model = new AttributeMappingSource().GetModel(typeof(ReportDBMLClassesDataContext));<br />
int i = 0;<br />
ArrayList lblList = new ArrayList();<br />
foreach (var mt in model.GetTables())<br />
{<br />
i++;<br />
Label lbl = new Label();<br />
lbl.Text = mt.TableName.ToString();<br />
lbl.ID = &#8220;lbl&#8221; + i;<br />
Panel1.Controls.Add(lbl);<br />
Panel1.Controls.Add(new LiteralControl(&#8220;&lt;br&gt;&#8221;));<br />
int r = 0;<br />
foreach (var dm in mt.RowType.DataMembers)<br />
{<br />
r++;<br />
Label rlbl = new Label();<br />
rlbl.Text = dm.MappedName.ToString();<br />
rlbl.ID = &#8220;rlbl&#8221; + i + &#8220;&#8221; + r;<br />
Panel1.Controls.Add(rlbl);<br />
Panel1.Controls.Add(new LiteralControl(&#8220;&lt;br&gt;&#8221;));<br />
}<br />
}</p>
Written by Deepak Vasa - <a href="http://www.cubicthoughts.com">Visit Website</a>]]></content:encoded>
			<wfw:commentRss>http://cubicthoughts.com/2008/10/31/linq-query-to-get-all-the-column-names-in-the-dbml-tables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

