<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Creating a Data Access Layer with Linq to SQL, part 1</title>
	<atom:link href="http://krisvandermotten.wordpress.com/2006/11/19/creating-a-data-access-layer-with-linq-to-sql-part-1/feed/" rel="self" type="application/rss+xml" />
	<link>http://krisvandermotten.wordpress.com/2006/11/19/creating-a-data-access-layer-with-linq-to-sql-part-1/</link>
	<description>Kris Vandermotten's blog</description>
	<lastBuildDate>Sat, 09 May 2009 00:04:07 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: mikew909</title>
		<link>http://krisvandermotten.wordpress.com/2006/11/19/creating-a-data-access-layer-with-linq-to-sql-part-1/#comment-2613</link>
		<dc:creator>mikew909</dc:creator>
		<pubDate>Thu, 15 May 2008 03:30:41 +0000</pubDate>
		<guid isPermaLink="false">http://krisvandermotten.wordpress.com/2006/11/19/creating-a-data-access-layer-with-linq-to-sql-part-1/#comment-2613</guid>
		<description>Hiya - great article you got me rethinking about DALs now, I&#039;ve been dabbling in ORM applications like EntitySpaces and LLBLGen but I&#039;m going to investigate LINQ some more

cheers :)</description>
		<content:encoded><![CDATA[<p>Hiya &#8211; great article you got me rethinking about DALs now, I&#8217;ve been dabbling in ORM applications like EntitySpaces and LLBLGen but I&#8217;m going to investigate LINQ some more</p>
<p>cheers <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AlanLe.net &#187; links for 2008-04-03</title>
		<link>http://krisvandermotten.wordpress.com/2006/11/19/creating-a-data-access-layer-with-linq-to-sql-part-1/#comment-2608</link>
		<dc:creator>AlanLe.net &#187; links for 2008-04-03</dc:creator>
		<pubDate>Thu, 03 Apr 2008 08:36:54 +0000</pubDate>
		<guid isPermaLink="false">http://krisvandermotten.wordpress.com/2006/11/19/creating-a-data-access-layer-with-linq-to-sql-part-1/#comment-2608</guid>
		<description>[...] Creating a Data Access Layer with Linq to SQL, part 1 « Kris.NET (tags: data linq) [...]</description>
		<content:encoded><![CDATA[<p>[...] Creating a Data Access Layer with Linq to SQL, part 1 « Kris.NET (tags: data linq) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stiiifff</title>
		<link>http://krisvandermotten.wordpress.com/2006/11/19/creating-a-data-access-layer-with-linq-to-sql-part-1/#comment-2596</link>
		<dc:creator>Stiiifff</dc:creator>
		<pubDate>Mon, 28 Jan 2008 08:54:24 +0000</pubDate>
		<guid isPermaLink="false">http://krisvandermotten.wordpress.com/2006/11/19/creating-a-data-access-layer-with-linq-to-sql-part-1/#comment-2596</guid>
		<description>Hi Kris,

You might have a look about what is named by Ayende as &#039;Partial Domain Models&#039;:
http://ayende.com/Blog/archive/2008/01/12/Creating-Partial-Domain-Models.aspx
http://blog.yoot.be/2008/01/partial-domain-models-and-more.html
In that case, the ORM is NHibernate ... but the problem remains the same.

IMHO, the fact that Linq to SQL force you to have all your domain model expressed in one file per database doesn&#039;t mean that you have to go that way, especially when you would have liked to split your domain model in several sub-models. If you put all your entities in one big domain model, you end up trying to re-split the whole model in a higher layer.

Another interesting option is to use the Repository pattern, defined by a generic interface exposing Queryable collection so that you can use Linq for all your queries. The actual implementation of the Repository being Linq to SQL, or any other ORM ... it is less important as the Repository is actually abstracting your service layer, using Linq queries, from the actual &#039;Data Layer&#039;.

Check this article:
http://andrewpeters.net/2007/04/28/fixing-leaky-repository-abstractions-with-linq

Steve</description>
		<content:encoded><![CDATA[<p>Hi Kris,</p>
<p>You might have a look about what is named by Ayende as &#8216;Partial Domain Models&#8217;:<br />
<a href="http://ayende.com/Blog/archive/2008/01/12/Creating-Partial-Domain-Models.aspx" rel="nofollow">http://ayende.com/Blog/archive/2008/01/12/Creating-Partial-Domain-Models.aspx</a><br />
<a href="http://blog.yoot.be/2008/01/partial-domain-models-and-more.html" rel="nofollow">http://blog.yoot.be/2008/01/partial-domain-models-and-more.html</a><br />
In that case, the ORM is NHibernate &#8230; but the problem remains the same.</p>
<p>IMHO, the fact that Linq to SQL force you to have all your domain model expressed in one file per database doesn&#8217;t mean that you have to go that way, especially when you would have liked to split your domain model in several sub-models. If you put all your entities in one big domain model, you end up trying to re-split the whole model in a higher layer.</p>
<p>Another interesting option is to use the Repository pattern, defined by a generic interface exposing Queryable collection so that you can use Linq for all your queries. The actual implementation of the Repository being Linq to SQL, or any other ORM &#8230; it is less important as the Repository is actually abstracting your service layer, using Linq queries, from the actual &#8216;Data Layer&#8217;.</p>
<p>Check this article:<br />
<a href="http://andrewpeters.net/2007/04/28/fixing-leaky-repository-abstractions-with-linq" rel="nofollow">http://andrewpeters.net/2007/04/28/fixing-leaky-repository-abstractions-with-linq</a></p>
<p>Steve</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: progrmr</title>
		<link>http://krisvandermotten.wordpress.com/2006/11/19/creating-a-data-access-layer-with-linq-to-sql-part-1/#comment-2563</link>
		<dc:creator>progrmr</dc:creator>
		<pubDate>Wed, 16 Jan 2008 14:27:35 +0000</pubDate>
		<guid isPermaLink="false">http://krisvandermotten.wordpress.com/2006/11/19/creating-a-data-access-layer-with-linq-to-sql-part-1/#comment-2563</guid>
		<description>I agree with the blog. There are certainly many ways to arrange things but I&#039;m doing pretty much the exact same thing. My LinqToSql schema represents the entire database and seperate entity classes utilize that single data context.

Good blog - onto part 2.</description>
		<content:encoded><![CDATA[<p>I agree with the blog. There are certainly many ways to arrange things but I&#8217;m doing pretty much the exact same thing. My LinqToSql schema represents the entire database and seperate entity classes utilize that single data context.</p>
<p>Good blog &#8211; onto part 2.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam Schaible</title>
		<link>http://krisvandermotten.wordpress.com/2006/11/19/creating-a-data-access-layer-with-linq-to-sql-part-1/#comment-2336</link>
		<dc:creator>Adam Schaible</dc:creator>
		<pubDate>Tue, 08 Jan 2008 01:20:15 +0000</pubDate>
		<guid isPermaLink="false">http://krisvandermotten.wordpress.com/2006/11/19/creating-a-data-access-layer-with-linq-to-sql-part-1/#comment-2336</guid>
		<description>cumpsd:

I&#039;m faced with a similar situation - here&#039;s my solution.

Interface the DAO&#039;s, and make your implementation use Linq - create a static service layer that wraps all of your DAO&#039;s, and it&#039;s kind of like the &quot;DAL&quot; if you will.  All of your code will call this static service layer, that references the linq implementations by their interface type.</description>
		<content:encoded><![CDATA[<p>cumpsd:</p>
<p>I&#8217;m faced with a similar situation &#8211; here&#8217;s my solution.</p>
<p>Interface the DAO&#8217;s, and make your implementation use Linq &#8211; create a static service layer that wraps all of your DAO&#8217;s, and it&#8217;s kind of like the &#8220;DAL&#8221; if you will.  All of your code will call this static service layer, that references the linq implementations by their interface type.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cumpsd</title>
		<link>http://krisvandermotten.wordpress.com/2006/11/19/creating-a-data-access-layer-with-linq-to-sql-part-1/#comment-902</link>
		<dc:creator>cumpsd</dc:creator>
		<pubDate>Wed, 22 Aug 2007 20:08:36 +0000</pubDate>
		<guid isPermaLink="false">http://krisvandermotten.wordpress.com/2006/11/19/creating-a-data-access-layer-with-linq-to-sql-part-1/#comment-902</guid>
		<description>I&#039;m favored into thinking that linq *is* the DAL, but in the business I&#039;m currently working on, there&#039;s need for higher flexibility.

What do I mean with that? I&#039;ll be going for an architecture (haven&#039;t finished it yet) which uses LINQ for all it&#039;s data access, but all the layers above that shouldn&#039;t know that linq is running under the hood.

The reason for this, it&#039;s very possible there comes a point during early stages of development where votes are against linq and I have to take it out again, replacing it by something else.

At that point, I really don&#039;t want to rewrite anything above the data layer.

Does Linq bind us too much into choosing 1 solution for our data?</description>
		<content:encoded><![CDATA[<p>I&#8217;m favored into thinking that linq *is* the DAL, but in the business I&#8217;m currently working on, there&#8217;s need for higher flexibility.</p>
<p>What do I mean with that? I&#8217;ll be going for an architecture (haven&#8217;t finished it yet) which uses LINQ for all it&#8217;s data access, but all the layers above that shouldn&#8217;t know that linq is running under the hood.</p>
<p>The reason for this, it&#8217;s very possible there comes a point during early stages of development where votes are against linq and I have to take it out again, replacing it by something else.</p>
<p>At that point, I really don&#8217;t want to rewrite anything above the data layer.</p>
<p>Does Linq bind us too much into choosing 1 solution for our data?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: All you can LINQ &#187; Sending the LINQ to SQL log to the debugger output window</title>
		<link>http://krisvandermotten.wordpress.com/2006/11/19/creating-a-data-access-layer-with-linq-to-sql-part-1/#comment-790</link>
		<dc:creator>All you can LINQ &#187; Sending the LINQ to SQL log to the debugger output window</dc:creator>
		<pubDate>Tue, 31 Jul 2007 22:21:02 +0000</pubDate>
		<guid isPermaLink="false">http://krisvandermotten.wordpress.com/2006/11/19/creating-a-data-access-layer-with-linq-to-sql-part-1/#comment-790</guid>
		<description>[...] a series of posts about the impact the use of LINQ to SQL has over a classical Data-Access Layer (part 1, part [...]</description>
		<content:encoded><![CDATA[<p>[...] a series of posts about the impact the use of LINQ to SQL has over a classical Data-Access Layer (part 1, part [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fluxcapacity &#187; Blog Archive &#187; Data Access Layer: To LINQ or not to LINQ</title>
		<link>http://krisvandermotten.wordpress.com/2006/11/19/creating-a-data-access-layer-with-linq-to-sql-part-1/#comment-777</link>
		<dc:creator>fluxcapacity &#187; Blog Archive &#187; Data Access Layer: To LINQ or not to LINQ</dc:creator>
		<pubDate>Sat, 21 Jul 2007 22:11:51 +0000</pubDate>
		<guid isPermaLink="false">http://krisvandermotten.wordpress.com/2006/11/19/creating-a-data-access-layer-with-linq-to-sql-part-1/#comment-777</guid>
		<description>[...] introduction, and Kris Vandermotten shares some thoughts on LINQ&#8217;s implications on the DAL here and here.  He writes: There is no doubt that Linq to SQL will have an enormous impact on the way [...]</description>
		<content:encoded><![CDATA[<p>[...] introduction, and Kris Vandermotten shares some thoughts on LINQ&#8217;s implications on the DAL here and here.  He writes: There is no doubt that Linq to SQL will have an enormous impact on the way [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
