<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>IUpdateable for Linq To Sql</title><link>http://blogs.msdn.com/aconrad/archive/2008/11/05/iupdateable-for-linq-to-sql.aspx</link><description>IUpdatable for Linq to Sql I have had an implementation of IUpdateable for Linq to Sql about half done for quite some time now. Yesterday I decided to bite the bullet and finish it up. Below I have included that code. I&amp;#8217;ve done some light testing,</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>IUpdateable for Linq To Sql | Tmao Coders</title><link>http://blogs.msdn.com/aconrad/archive/2008/11/05/iupdateable-for-linq-to-sql.aspx#9046966</link><pubDate>Thu, 06 Nov 2008 08:21:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9046966</guid><dc:creator>IUpdateable for Linq To Sql | Tmao Coders</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.tmao.info/iupdateable-for-linq-to-sql/"&gt;http://www.tmao.info/iupdateable-for-linq-to-sql/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: IUpdateable for Linq To Sql</title><link>http://blogs.msdn.com/aconrad/archive/2008/11/05/iupdateable-for-linq-to-sql.aspx#9049186</link><pubDate>Thu, 06 Nov 2008 17:36:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9049186</guid><dc:creator>rogerj</dc:creator><description>&lt;p&gt;Andy,&lt;/p&gt;
&lt;p&gt;Thanks very much for the IUpdatable implementation. It's a very welcome occurrence to finally have data-source partity with Entity Framework for Astoria.&lt;/p&gt;
&lt;p&gt;Roger Jennings&lt;/p&gt;
</description></item><item><title>re: IUpdateable for Linq To Sql</title><link>http://blogs.msdn.com/aconrad/archive/2008/11/05/iupdateable-for-linq-to-sql.aspx#9052077</link><pubDate>Fri, 07 Nov 2008 15:28:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9052077</guid><dc:creator>Benjamín Eidelman</dc:creator><description>&lt;p&gt;Thanks for sharing this!&lt;/p&gt;
&lt;p&gt;Have you done any performance test yet?&lt;/p&gt;
&lt;p&gt;If you had, have you tried improving it by avoiding some of the Reflection calls? because those they use to be expensive, and caching would be very straight-forward in this case:&lt;/p&gt;
&lt;p&gt;e.g. create a Dictionary&amp;lt;string,ITable&amp;gt; to cache this:&lt;/p&gt;
&lt;p&gt;(ITable)this.GetType().GetProperty(containerName).GetValue(this, null)&lt;/p&gt;</description></item><item><title>re: IUpdateable for Linq To Sql</title><link>http://blogs.msdn.com/aconrad/archive/2008/11/05/iupdateable-for-linq-to-sql.aspx#9052983</link><pubDate>Fri, 07 Nov 2008 23:15:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9052983</guid><dc:creator>aconrad</dc:creator><description>&lt;p&gt;I thought about caching the table mappings to avoid using reflection to much. &amp;nbsp;I did not for a couple of reasons:&lt;/p&gt;
&lt;p&gt;1) &amp;nbsp;I wanted to make the code as simple and clean as possible.&lt;/p&gt;
&lt;p&gt;2) &amp;nbsp;Our use of the context in ADO.NET Data Services in the server is very short lived. &amp;nbsp;For single CUD operations - there would be no saving. &amp;nbsp;For multiple changes in a batch, there might be some perf &lt;/p&gt;
&lt;p&gt;It might be an option to make this a static member and initialize only once. &amp;nbsp;I might try that to see if there is a perf gain. &amp;nbsp;Our experience is that this may help as a local optimization, but in the big picture (database, network, parsing) it makes very little difference.&lt;/p&gt;
</description></item><item><title>IUpdateable for Linq To Sql - Make Linq to Sql a read/write data</title><link>http://blogs.msdn.com/aconrad/archive/2008/11/05/iupdateable-for-linq-to-sql.aspx#9102639</link><pubDate>Sun, 16 Nov 2008 09:03:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9102639</guid><dc:creator>DotNetKicks.com</dc:creator><description>&lt;p&gt;You've been kicked (a good thing) - Trackback from DotNetKicks.com&lt;/p&gt;
</description></item><item><title>re: IUpdateable for Linq To Sql</title><link>http://blogs.msdn.com/aconrad/archive/2008/11/05/iupdateable-for-linq-to-sql.aspx#9215966</link><pubDate>Mon, 15 Dec 2008 01:56:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9215966</guid><dc:creator>Matthew Wills</dc:creator><description>&lt;p&gt;Can you give us a 5-line explanation of what this exactly is for? For example, is there something that couldn't be done previously and now it can be? Is there a demo (zip file?) available showing the new 'features' this makes available / possible?&lt;/p&gt;</description></item><item><title>re: IUpdateable for Linq To Sql</title><link>http://blogs.msdn.com/aconrad/archive/2008/11/05/iupdateable-for-linq-to-sql.aspx#9222701</link><pubDate>Tue, 16 Dec 2008 02:02:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9222701</guid><dc:creator>aconrad</dc:creator><description>&lt;p&gt;@Matthew Wills&lt;/p&gt;
&lt;p&gt;This post will probably help.&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/aconrad/archive/2008/12/15/what-is-iupdatable-why-should-i-care.aspx"&gt;http://blogs.msdn.com/aconrad/archive/2008/12/15/what-is-iupdatable-why-should-i-care.aspx&lt;/a&gt;&lt;/p&gt;
</description></item></channel></rss>