<?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: Linq to Sql &#8211; How-to Separate the entities and the DataContext.</title>
	<atom:link href="http://daniel.wertheim.se/2010/03/14/linq-to-sql-how-to-separate-the-entities-and-the-datacontext/feed/" rel="self" type="application/rss+xml" />
	<link>http://daniel.wertheim.se/2010/03/14/linq-to-sql-how-to-separate-the-entities-and-the-datacontext/</link>
	<description>Love what you do - Continue to do it - Be eager to learn more about it.</description>
	<lastBuildDate>Tue, 24 Jan 2012 07:50:22 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Daniel Wertheim</title>
		<link>http://daniel.wertheim.se/2010/03/14/linq-to-sql-how-to-separate-the-entities-and-the-datacontext/#comment-586</link>
		<dc:creator><![CDATA[Daniel Wertheim]]></dc:creator>
		<pubDate>Thu, 10 Feb 2011 22:36:27 +0000</pubDate>
		<guid isPermaLink="false">http://daniel.wertheim.se/?p=373#comment-586</guid>
		<description><![CDATA[Hi,

What errors do you get?

//Daniel]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>What errors do you get?</p>
<p>//Daniel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gary</title>
		<link>http://daniel.wertheim.se/2010/03/14/linq-to-sql-how-to-separate-the-entities-and-the-datacontext/#comment-585</link>
		<dc:creator><![CDATA[Gary]]></dc:creator>
		<pubDate>Thu, 10 Feb 2011 21:59:26 +0000</pubDate>
		<guid isPermaLink="false">http://daniel.wertheim.se/?p=373#comment-585</guid>
		<description><![CDATA[Hi,

I&#039;ve moved the solution over to VS2008 .Net 3.5 however I get an error on the following:

public virtual IQueryable Query(Expression&lt;Func&gt; expression = null) where T : class

Could you recommend how to change this the be .NET 3.5 compatible?

Thanks
Gary]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I&#8217;ve moved the solution over to VS2008 .Net 3.5 however I get an error on the following:</p>
<p>public virtual IQueryable Query(Expression&lt;Func&gt; expression = null) where T : class</p>
<p>Could you recommend how to change this the be .NET 3.5 compatible?</p>
<p>Thanks<br />
Gary</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Wertheim</title>
		<link>http://daniel.wertheim.se/2010/03/14/linq-to-sql-how-to-separate-the-entities-and-the-datacontext/#comment-463</link>
		<dc:creator><![CDATA[Daniel Wertheim]]></dc:creator>
		<pubDate>Mon, 19 Jul 2010 11:00:32 +0000</pubDate>
		<guid isPermaLink="false">http://daniel.wertheim.se/?p=373#comment-463</guid>
		<description><![CDATA[Hi,
There&#039;s a comment on this for deletions. Updates are the same. You need to attach the item to the context first. You could of course refetch it and update the refetched item.

//Daniel]]></description>
		<content:encoded><![CDATA[<p>Hi,<br />
There&#8217;s a comment on this for deletions. Updates are the same. You need to attach the item to the context first. You could of course refetch it and update the refetched item.</p>
<p>//Daniel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Girish Girgowda</title>
		<link>http://daniel.wertheim.se/2010/03/14/linq-to-sql-how-to-separate-the-entities-and-the-datacontext/#comment-462</link>
		<dc:creator><![CDATA[Girish Girgowda]]></dc:creator>
		<pubDate>Sun, 18 Jul 2010 20:49:10 +0000</pubDate>
		<guid isPermaLink="false">http://daniel.wertheim.se/?p=373#comment-462</guid>
		<description><![CDATA[Thanks for the nice details of how to use T4 templates. I was trying out the sample and kept hitting the detached entities while performing updates on the object graph. Any idea how this can be over come. 
Thanks,]]></description>
		<content:encoded><![CDATA[<p>Thanks for the nice details of how to use T4 templates. I was trying out the sample and kept hitting the detached entities while performing updates on the object graph. Any idea how this can be over come.<br />
Thanks,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Wertheim</title>
		<link>http://daniel.wertheim.se/2010/03/14/linq-to-sql-how-to-separate-the-entities-and-the-datacontext/#comment-164</link>
		<dc:creator><![CDATA[Daniel Wertheim]]></dc:creator>
		<pubDate>Thu, 18 Mar 2010 21:53:07 +0000</pubDate>
		<guid isPermaLink="false">http://daniel.wertheim.se/?p=373#comment-164</guid>
		<description><![CDATA[Hi,
Even though I have a IoC-container, I like to have a factory that gets named and somewhat &quot;states&quot; what could be returned, as opposed to the IoC-container, which is completely dynamic.

//Daniel]]></description>
		<content:encoded><![CDATA[<p>Hi,<br />
Even though I have a IoC-container, I like to have a factory that gets named and somewhat &#8220;states&#8221; what could be returned, as opposed to the IoC-container, which is completely dynamic.</p>
<p>//Daniel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashraf</title>
		<link>http://daniel.wertheim.se/2010/03/14/linq-to-sql-how-to-separate-the-entities-and-the-datacontext/#comment-162</link>
		<dc:creator><![CDATA[Ashraf]]></dc:creator>
		<pubDate>Thu, 18 Mar 2010 17:42:03 +0000</pubDate>
		<guid isPermaLink="false">http://daniel.wertheim.se/?p=373#comment-162</guid>
		<description><![CDATA[Why you choose factory pattern for IoC here as compared to 
ServiceEngine.Instance.IoC.Resolve(IEntityStore))

what are the benafit with this new changes?]]></description>
		<content:encoded><![CDATA[<p>Why you choose factory pattern for IoC here as compared to<br />
ServiceEngine.Instance.IoC.Resolve(IEntityStore))</p>
<p>what are the benafit with this new changes?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Wertheim</title>
		<link>http://daniel.wertheim.se/2010/03/14/linq-to-sql-how-to-separate-the-entities-and-the-datacontext/#comment-147</link>
		<dc:creator><![CDATA[Daniel Wertheim]]></dc:creator>
		<pubDate>Mon, 15 Mar 2010 14:27:48 +0000</pubDate>
		<guid isPermaLink="false">http://daniel.wertheim.se/?p=373#comment-147</guid>
		<description><![CDATA[I will update it again, but for now I announce the changes like this:
- Delete should also attach
- Attach as modified needs Row Version.

[sourcecode language=&quot;csharp&quot;]
[Column(
    Name = @&quot;Version&quot;,
    AutoSync = AutoSync.Always,
    DbType = @&quot;rowversion NOT NULL&quot;,
    CanBeNull = false,
    IsDbGenerated = true,
    IsVersion = true,
    UpdateCheck = UpdateCheck.Never)]
public Binary Version { get; set; }
[/sourcecode]

//Daniel]]></description>
		<content:encoded><![CDATA[<p>I will update it again, but for now I announce the changes like this:<br />
- Delete should also attach<br />
- Attach as modified needs Row Version.</p>
<pre class="brush: csharp;">
[Column(
    Name = @&quot;Version&quot;,
    AutoSync = AutoSync.Always,
    DbType = @&quot;rowversion NOT NULL&quot;,
    CanBeNull = false,
    IsDbGenerated = true,
    IsVersion = true,
    UpdateCheck = UpdateCheck.Never)]
public Binary Version { get; set; }
</pre>
<p>//Daniel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Wertheim</title>
		<link>http://daniel.wertheim.se/2010/03/14/linq-to-sql-how-to-separate-the-entities-and-the-datacontext/#comment-144</link>
		<dc:creator><![CDATA[Daniel Wertheim]]></dc:creator>
		<pubDate>Sun, 14 Mar 2010 21:13:56 +0000</pubDate>
		<guid isPermaLink="false">http://daniel.wertheim.se/?p=373#comment-144</guid>
		<description><![CDATA[Just updated the article and the code-sample. The UnitOfWork now has the generic-type on each method instead.

//Daniel]]></description>
		<content:encoded><![CDATA[<p>Just updated the article and the code-sample. The UnitOfWork now has the generic-type on each method instead.</p>
<p>//Daniel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DotNetShoutout</title>
		<link>http://daniel.wertheim.se/2010/03/14/linq-to-sql-how-to-separate-the-entities-and-the-datacontext/#comment-143</link>
		<dc:creator><![CDATA[DotNetShoutout]]></dc:creator>
		<pubDate>Sun, 14 Mar 2010 19:06:06 +0000</pubDate>
		<guid isPermaLink="false">http://daniel.wertheim.se/?p=373#comment-143</guid>
		<description><![CDATA[&lt;strong&gt;Linq to Sql – How-to Separate the entities and the DataContext....&lt;/strong&gt;

Thank you for submitting this cool story - Trackback from DotNetShoutout...]]></description>
		<content:encoded><![CDATA[<p><strong>Linq to Sql – How-to Separate the entities and the DataContext&#8230;.</strong></p>
<p>Thank you for submitting this cool story &#8211; Trackback from DotNetShoutout&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Wertheim</title>
		<link>http://daniel.wertheim.se/2010/03/14/linq-to-sql-how-to-separate-the-entities-and-the-datacontext/#comment-142</link>
		<dc:creator><![CDATA[Daniel Wertheim]]></dc:creator>
		<pubDate>Sun, 14 Mar 2010 14:42:33 +0000</pubDate>
		<guid isPermaLink="false">http://daniel.wertheim.se/?p=373#comment-142</guid>
		<description><![CDATA[Will update this story and code when I get home. IUnitOfWork should define the generic type on each method instead. 

//Daniel]]></description>
		<content:encoded><![CDATA[<p>Will update this story and code when I get home. IUnitOfWork should define the generic type on each method instead. </p>
<p>//Daniel</p>
]]></content:encoded>
	</item>
</channel>
</rss>

