<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: HowTo: LINQ to SQL debugging</title>
	<atom:link href="http://code-inside.de/blog-in/2008/04/10/howto-linq-to-sql-debugging/feed/" rel="self" type="application/rss+xml" />
	<link>http://code-inside.de/blog-in/2008/04/10/howto-linq-to-sql-debugging/</link>
	<description>Blogging about ASP.NET, .NET &#38; C#</description>
	<lastBuildDate>Wed, 11 Apr 2012 23:21:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
	<item>
		<title>By: Polaris</title>
		<link>http://code-inside.de/blog-in/2008/04/10/howto-linq-to-sql-debugging/comment-page-1/#comment-2453</link>
		<dc:creator>Polaris</dc:creator>
		<pubDate>Mon, 03 Nov 2008 16:42:11 +0000</pubDate>
		<guid isPermaLink="false">http://code-inside.de/blog-in/2008/04/10/howto-linq-to-sql-debugging/#comment-2453</guid>
		<description>DataClasses1DataContext db = new DataClasses1DataContext();

 var organizations = from org in db.Organizations
 where org.Divisions.Count &gt; 0
 select org;

 Debug.WriteLine(organizations);

will output:

SELECT [t0].[OrganizationID], [t0].[Name]
FROM [dbo].[Organizations] AS [t0]
WHERE ((
 SELECT COUNT(*)
 FROM [dbo].[Divisions] AS [t1]
 WHERE [t1].[OrganizationID] = [t0].[OrganizationID]
 )) &gt; @p0</description>
		<content:encoded><![CDATA[<p>DataClasses1DataContext db = new DataClasses1DataContext();</p>
<p> var organizations = from org in db.Organizations<br />
 where org.Divisions.Count &gt; 0<br />
 select org;</p>
<p> Debug.WriteLine(organizations);</p>
<p>will output:</p>
<p>SELECT [t0].[OrganizationID], [t0].[Name]<br />
FROM [dbo].[Organizations] AS [t0]<br />
WHERE ((<br />
 SELECT COUNT(*)<br />
 FROM [dbo].[Divisions] AS [t1]<br />
 WHERE [t1].[OrganizationID] = [t0].[OrganizationID]<br />
 )) &gt; @p0</p>
]]></content:encoded>
	</item>
</channel>
</rss>

