<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.3" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Linq to SQL with WCF in a Multi Tiered Action &#8211; Part 1</title>
	<link>http://www.sidarok.com/web/blog/content/2008/05/26/linq-to-sql-with-wcf-in-a-multi-tiered-action-part-1.html</link>
	<description>still believes in coding to make dreams come true</description>
	<pubDate>Sun, 01 Aug 2010 02:25:52 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.3</generator>

	<item>
		<title>By: John Leitch</title>
		<link>http://www.sidarok.com/web/blog/content/2008/05/26/linq-to-sql-with-wcf-in-a-multi-tiered-action-part-1.html#comment-12128</link>
		<dc:creator>John Leitch</dc:creator>
		<pubDate>Tue, 09 Feb 2010 21:37:52 +0000</pubDate>
		<guid>http://www.sidarok.com/web/blog/content/2008/05/26/linq-to-sql-with-wcf-in-a-multi-tiered-action-part-1.html#comment-12128</guid>
		<description>I wrote a tool that automates most of this. It can be found at http://wcfmetal.codeplex.com/</description>
		<content:encoded><![CDATA[<p>I wrote a tool that automates most of this. It can be found at <a href="http://wcfmetal.codeplex.com/" rel="nofollow" onclick="javascript:pageTracker._trackPageview('/outbound/comment/http://wcfmetal.codeplex.com/');">http://wcfmetal.codeplex.com/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sidar Ok</title>
		<link>http://www.sidarok.com/web/blog/content/2008/05/26/linq-to-sql-with-wcf-in-a-multi-tiered-action-part-1.html#comment-7375</link>
		<dc:creator>Sidar Ok</dc:creator>
		<pubDate>Thu, 13 Aug 2009 11:58:24 +0000</pubDate>
		<guid>http://www.sidarok.com/web/blog/content/2008/05/26/linq-to-sql-with-wcf-in-a-multi-tiered-action-part-1.html#comment-7375</guid>
		<description>@zed

The user object is not null here, are you sure the db and mappings are done correctly ?</description>
		<content:encoded><![CDATA[<p>@zed</p>
<p>The user object is not null here, are you sure the db and mappings are done correctly ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sidar Ok</title>
		<link>http://www.sidarok.com/web/blog/content/2008/05/26/linq-to-sql-with-wcf-in-a-multi-tiered-action-part-1.html#comment-7374</link>
		<dc:creator>Sidar Ok</dc:creator>
		<pubDate>Thu, 13 Aug 2009 11:57:17 +0000</pubDate>
		<guid>http://www.sidarok.com/web/blog/content/2008/05/26/linq-to-sql-with-wcf-in-a-multi-tiered-action-part-1.html#comment-7374</guid>
		<description>@Kyle 

Thanks a lot. Indeed there was no disconnected example on the internet when I wrote this article, even seen people from Microsoft mentioning that Disconnected scenario is not possible. So I was burnt a lot to extract this out at the time, I am really glad that people like you still find it helpful and time saving.</description>
		<content:encoded><![CDATA[<p>@Kyle </p>
<p>Thanks a lot. Indeed there was no disconnected example on the internet when I wrote this article, even seen people from Microsoft mentioning that Disconnected scenario is not possible. So I was burnt a lot to extract this out at the time, I am really glad that people like you still find it helpful and time saving.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kyle</title>
		<link>http://www.sidarok.com/web/blog/content/2008/05/26/linq-to-sql-with-wcf-in-a-multi-tiered-action-part-1.html#comment-7333</link>
		<dc:creator>Kyle</dc:creator>
		<pubDate>Tue, 11 Aug 2009 16:07:21 +0000</pubDate>
		<guid>http://www.sidarok.com/web/blog/content/2008/05/26/linq-to-sql-with-wcf-in-a-multi-tiered-action-part-1.html#comment-7333</guid>
		<description>Nice man - someone else said it, but it wouldn't hurt to repeat it: there's a big gap in terms of actual real-life, multi-tiered app examples out there for all of the microsoft technologies... thanks for putting this out there...

as an aside: we use linq in an "enterprise" application - it works...but it takes some beating up as I think you show here in your post.</description>
		<content:encoded><![CDATA[<p>Nice man - someone else said it, but it wouldn&#8217;t hurt to repeat it: there&#8217;s a big gap in terms of actual real-life, multi-tiered app examples out there for all of the microsoft technologies&#8230; thanks for putting this out there&#8230;</p>
<p>as an aside: we use linq in an &#8220;enterprise&#8221; application - it works&#8230;but it takes some beating up as I think you show here in your post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zed</title>
		<link>http://www.sidarok.com/web/blog/content/2008/05/26/linq-to-sql-with-wcf-in-a-multi-tiered-action-part-1.html#comment-5251</link>
		<dc:creator>zed</dc:creator>
		<pubDate>Wed, 21 Jan 2009 10:40:27 +0000</pubDate>
		<guid>http://www.sidarok.com/web/blog/content/2008/05/26/linq-to-sql-with-wcf-in-a-multi-tiered-action-part-1.html#comment-5251</guid>
		<description>Test method FavoritesDAL.Tests.UsersDataAccessTest.BatchUpdateUsers threw exception:  System.NullReferenceException: Object reference not set to an instance of an object..
FavoritesDAL.Tests.UsersDataAccessTest.BatchUpdateUsers() in C:\DevProjects\LinqWcfMultitier\LinqWcfMultitier\LinqWcfMultitier.Web.Site\FavoritesDAL.Tests\UsersDataAccessTest.cs: line 94

the user object is null - is that correct?</description>
		<content:encoded><![CDATA[<p>Test method FavoritesDAL.Tests.UsersDataAccessTest.BatchUpdateUsers threw exception:  System.NullReferenceException: Object reference not set to an instance of an object..<br />
FavoritesDAL.Tests.UsersDataAccessTest.BatchUpdateUsers() in C:\DevProjects\LinqWcfMultitier\LinqWcfMultitier\LinqWcfMultitier.Web.Site\FavoritesDAL.Tests\UsersDataAccessTest.cs: line 94</p>
<p>the user object is null - is that correct?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sidar Ok</title>
		<link>http://www.sidarok.com/web/blog/content/2008/05/26/linq-to-sql-with-wcf-in-a-multi-tiered-action-part-1.html#comment-4915</link>
		<dc:creator>Sidar Ok</dc:creator>
		<pubDate>Wed, 24 Dec 2008 10:17:57 +0000</pubDate>
		<guid>http://www.sidarok.com/web/blog/content/2008/05/26/linq-to-sql-with-wcf-in-a-multi-tiered-action-part-1.html#comment-4915</guid>
		<description>@Andrey,

Thanks a lot. 

The enums are serializable by default since they are nothing more than integers, so you don't need DataContract on enums. The tests are still passing, could you copy the error you are having ? I suspect that the problem is elsewhere.</description>
		<content:encoded><![CDATA[<p>@Andrey,</p>
<p>Thanks a lot. </p>
<p>The enums are serializable by default since they are nothing more than integers, so you don&#8217;t need DataContract on enums. The tests are still passing, could you copy the error you are having ? I suspect that the problem is elsewhere.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrey</title>
		<link>http://www.sidarok.com/web/blog/content/2008/05/26/linq-to-sql-with-wcf-in-a-multi-tiered-action-part-1.html#comment-4887</link>
		<dc:creator>Andrey</dc:creator>
		<pubDate>Mon, 22 Dec 2008 23:56:41 +0000</pubDate>
		<guid>http://www.sidarok.com/web/blog/content/2008/05/26/linq-to-sql-with-wcf-in-a-multi-tiered-action-part-1.html#comment-4887</guid>
		<description>Excellent article, got me started very fast.
One thing I couldn't get working right away is serializing the enum property. 

Modified the enum definition to include EnumMemberAttribute and it worked.

[DataContract]
        public enum EntityStatus
        {
            [EnumMember]
            None = 0,
            [EnumMember]
            New = 1,
            [EnumMember]
            Updated = 2,
            [EnumMember]
            Deleted = 3
        }</description>
		<content:encoded><![CDATA[<p>Excellent article, got me started very fast.<br />
One thing I couldn&#8217;t get working right away is serializing the enum property. </p>
<p>Modified the enum definition to include EnumMemberAttribute and it worked.</p>
<p>[DataContract]<br />
        public enum EntityStatus<br />
        {<br />
            [EnumMember]<br />
            None = 0,<br />
            [EnumMember]<br />
            New = 1,<br />
            [EnumMember]<br />
            Updated = 2,<br />
            [EnumMember]<br />
            Deleted = 3<br />
        }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sidar Ok</title>
		<link>http://www.sidarok.com/web/blog/content/2008/05/26/linq-to-sql-with-wcf-in-a-multi-tiered-action-part-1.html#comment-139</link>
		<dc:creator>Sidar Ok</dc:creator>
		<pubDate>Tue, 27 May 2008 08:30:08 +0000</pubDate>
		<guid>http://www.sidarok.com/web/blog/content/2008/05/26/linq-to-sql-with-wcf-in-a-multi-tiered-action-part-1.html#comment-139</guid>
		<description>Hi Javi, thanks for the nice thoughts. In the next post, I'll write the sample for data layer, and you are right, for select operations we are going to turn the Object Tracking off and it is more performant. But for Create, Update and Delete, since we need to call SubmitChanges in the context, Data Context can not be turned into readonly mode, otherwise it will throw InvalidOperationException - InvalidOperationException ObjectTrackingRequired. 

But as you said, when the data is read only, such as in Get operations, there is no need to turn object tracking on and there will be a significant performance increase in that.</description>
		<content:encoded><![CDATA[<p>Hi Javi, thanks for the nice thoughts. In the next post, I&#8217;ll write the sample for data layer, and you are right, for select operations we are going to turn the Object Tracking off and it is more performant. But for Create, Update and Delete, since we need to call SubmitChanges in the context, Data Context can not be turned into readonly mode, otherwise it will throw InvalidOperationException - InvalidOperationException ObjectTrackingRequired. </p>
<p>But as you said, when the data is read only, such as in Get operations, there is no need to turn object tracking on and there will be a significant performance increase in that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Javier Crespo</title>
		<link>http://www.sidarok.com/web/blog/content/2008/05/26/linq-to-sql-with-wcf-in-a-multi-tiered-action-part-1.html#comment-138</link>
		<dc:creator>Javier Crespo</dc:creator>
		<pubDate>Tue, 27 May 2008 07:17:53 +0000</pubDate>
		<guid>http://www.sidarok.com/web/blog/content/2008/05/26/linq-to-sql-with-wcf-in-a-multi-tiered-action-part-1.html#comment-138</guid>
		<description>Great walkthrough, I've seen other posts about linqtosql and they mainly focus in a 1 layer application so I really appreciate a sample that fits the Application design/architecture requirements that I'm usually exposed to. 
I'm looking forward to the second part. 
A question for you: Would it be good performance wise to turn off ObjectTracking for this scenario where the DataContext is not kept alive beyond the DataAccess layer?</description>
		<content:encoded><![CDATA[<p>Great walkthrough, I&#8217;ve seen other posts about linqtosql and they mainly focus in a 1 layer application so I really appreciate a sample that fits the Application design/architecture requirements that I&#8217;m usually exposed to.<br />
I&#8217;m looking forward to the second part.<br />
A question for you: Would it be good performance wise to turn off ObjectTracking for this scenario where the DataContext is not kept alive beyond the DataAccess layer?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
