<?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: Build Your Own Data Access Layer: Mapping Classes To Tables</title> <atom:link href="http://davybrion.com/blog/2009/08/build-your-own-data-access-layer-mapping-classes-to-tables/feed/" rel="self" type="application/rss+xml" /><link>http://davybrion.com/blog/2009/08/build-your-own-data-access-layer-mapping-classes-to-tables/</link> <description>inquisitive: adjective. given to inquiry, research, or asking questions; eager for knowledge; intellectually curious</description> <lastBuildDate>Wed, 08 Feb 2012 11:42:42 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Build Your Own Data Access Layer: Out Of The Box CRUD Functionality</title><link>http://davybrion.com/blog/2009/08/build-your-own-data-access-layer-mapping-classes-to-tables/comment-page-1/#comment-101142</link> <dc:creator>Build Your Own Data Access Layer: Out Of The Box CRUD Functionality</dc:creator> <pubDate>Sun, 04 Sep 2011 11:16:07 +0000</pubDate> <guid
isPermaLink="false">http://davybrion.com/blog/?p=1520#comment-101142</guid> <description>[...] knows about your classes and your tables, CRUD operations should &#039;just work&#039;.As you&#039;ve seen in the previous post of this series, the TableInfo class offers a couple of methods to automatically build the required [...]</description> <content:encoded><![CDATA[<p>[...] knows about your classes and your tables, CRUD operations should &#039;just work&#039;.As you&#039;ve seen in the previous post of this series, the TableInfo class offers a couple of methods to automatically build the required [...]</p> ]]></content:encoded> </item> <item><title>By: Build Your Own Data Access Layer: Bringing It All Together</title><link>http://davybrion.com/blog/2009/08/build-your-own-data-access-layer-mapping-classes-to-tables/comment-page-1/#comment-101137</link> <dc:creator>Build Your Own Data Access Layer: Bringing It All Together</dc:creator> <pubDate>Sun, 04 Sep 2011 10:54:11 +0000</pubDate> <guid
isPermaLink="false">http://davybrion.com/blog/?p=1520#comment-101137</guid> <description>[...] (containing your entity types) will be used to to build up the metadata model as covered in the Mapping Classes To Tables post. You would typically call the Create method in your application&#039;s startup code, and then you&#039;d have [...]</description> <content:encoded><![CDATA[<p>[...] (containing your entity types) will be used to to build up the metadata model as covered in the Mapping Classes To Tables post. You would typically call the Create method in your application&#039;s startup code, and then you&#039;d have [...]</p> ]]></content:encoded> </item> <item><title>By: Mike Scott</title><link>http://davybrion.com/blog/2009/08/build-your-own-data-access-layer-mapping-classes-to-tables/comment-page-1/#comment-22352</link> <dc:creator>Mike Scott</dc:creator> <pubDate>Thu, 27 Aug 2009 10:10:16 +0000</pubDate> <guid
isPermaLink="false">http://davybrion.com/blog/?p=1520#comment-22352</guid> <description>Hmmm, I used the code tag in my previous reply but it seems not to have honoured spacing, sorry :-(</description> <content:encoded><![CDATA[<p>Hmmm, I used the code tag in my previous reply but it seems not to have honoured spacing, sorry <img
src='http://d18sni7re4ly7f.cloudfront.net/blog/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /></p> ]]></content:encoded> </item> <item><title>By: Mike Scott</title><link>http://davybrion.com/blog/2009/08/build-your-own-data-access-layer-mapping-classes-to-tables/comment-page-1/#comment-22351</link> <dc:creator>Mike Scott</dc:creator> <pubDate>Thu, 27 Aug 2009 10:08:52 +0000</pubDate> <guid
isPermaLink="false">http://davybrion.com/blog/?p=1520#comment-22351</guid> <description>I know a dictionary lookup is an O(1) operation, but there&#039;s no point in doing twice what you can do it once:&lt;code&gt;
public static DbType ToDbType(Type type)
{
DbType dbType;
if (!typeToDbType.TryGetValue(type, out dbType))
{
throw new InvalidOperationException(string.Format(&quot;Type {0} doesn&#039;t have a matching DbType configured&quot;, type.FullName));
}return dbType;
}
&lt;/code&gt;</description> <content:encoded><![CDATA[<p>I know a dictionary lookup is an O(1) operation, but there&#8217;s no point in doing twice what you can do it once:</p><p><code><br
/> public static DbType ToDbType(Type type)<br
/> {<br
/> DbType dbType;<br
/> if (!typeToDbType.TryGetValue(type, out dbType))<br
/> {<br
/> throw new InvalidOperationException(string.Format("Type {0} doesn't have a matching DbType configured", type.FullName));<br
/> }</p><p> return dbType;<br
/> }<br
/> </code></p> ]]></content:encoded> </item> <item><title>By: New and Notable 362 : Sam Gentile's Blog (if (DeveloperTask == Communication &#38;&#38; OS == Windows)</title><link>http://davybrion.com/blog/2009/08/build-your-own-data-access-layer-mapping-classes-to-tables/comment-page-1/#comment-22330</link> <dc:creator>New and Notable 362 : Sam Gentile's Blog (if (DeveloperTask == Communication &#38;&#38; OS == Windows)</dc:creator> <pubDate>Tue, 25 Aug 2009 21:54:15 +0000</pubDate> <guid
isPermaLink="false">http://davybrion.com/blog/?p=1520#comment-22330</guid> <description>[...] on Build Your Own Data Access Layer Series. Some posts include Out of the Box CRUD Functionality, Mapping Classes to Tables, and Hydrating [...]</description> <content:encoded><![CDATA[<p>[...] on Build Your Own Data Access Layer Series. Some posts include Out of the Box CRUD Functionality, Mapping Classes to Tables, and Hydrating [...]</p> ]]></content:encoded> </item> <item><title>By: Ricardo Peres</title><link>http://davybrion.com/blog/2009/08/build-your-own-data-access-layer-mapping-classes-to-tables/comment-page-1/#comment-22311</link> <dc:creator>Ricardo Peres</dc:creator> <pubDate>Mon, 24 Aug 2009 10:29:46 +0000</pubDate> <guid
isPermaLink="false">http://davybrion.com/blog/?p=1520#comment-22311</guid> <description>You are right, Davy, sorry! :-)
I just read Oren&#039;s comments also, this seems promising...</description> <content:encoded><![CDATA[<p>You are right, Davy, sorry! <img
src='http://d18sni7re4ly7f.cloudfront.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /><br
/> I just read Oren&#8217;s comments also, this seems promising&#8230;</p> ]]></content:encoded> </item> <item><title>By: Davy Brion</title><link>http://davybrion.com/blog/2009/08/build-your-own-data-access-layer-mapping-classes-to-tables/comment-page-1/#comment-22310</link> <dc:creator>Davy Brion</dc:creator> <pubDate>Mon, 24 Aug 2009 09:28:21 +0000</pubDate> <guid
isPermaLink="false">http://davybrion.com/blog/?p=1520#comment-22310</guid> <description>i actually talked about it in the post :psearch for &quot;As for only targeting SQL Server,&quot; and read the rest of the paragraph ;)</description> <content:encoded><![CDATA[<p>i actually talked about it in the post :p</p><p>search for &#8220;As for only targeting SQL Server,&#8221; and read the rest of the paragraph <img
src='http://d18sni7re4ly7f.cloudfront.net/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p> ]]></content:encoded> </item> <item><title>By: Ricardo Peres</title><link>http://davybrion.com/blog/2009/08/build-your-own-data-access-layer-mapping-classes-to-tables/comment-page-1/#comment-22309</link> <dc:creator>Ricardo Peres</dc:creator> <pubDate>Mon, 24 Aug 2009 08:58:44 +0000</pubDate> <guid
isPermaLink="false">http://davybrion.com/blog/?p=1520#comment-22309</guid> <description>Davy,Nice post, as usual. I am looking forward for the next posts, because all tricky parts will come later on! :-)
One think you didn&#039;t address (and perhaps forgot to mention) was DB engine independence, your code requires SQL Server, am I right? What about creating an abstraction (or dialect) layer for dealing with different DBs, or, at least, leaving some extension points on the code?</description> <content:encoded><![CDATA[<p>Davy,</p><p>Nice post, as usual. I am looking forward for the next posts, because all tricky parts will come later on! <img
src='http://d18sni7re4ly7f.cloudfront.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /><br
/> One think you didn&#8217;t address (and perhaps forgot to mention) was DB engine independence, your code requires SQL Server, am I right? What about creating an abstraction (or dialect) layer for dealing with different DBs, or, at least, leaving some extension points on the code?</p> ]]></content:encoded> </item> <item><title>By: Davy Brion</title><link>http://davybrion.com/blog/2009/08/build-your-own-data-access-layer-mapping-classes-to-tables/comment-page-1/#comment-22306</link> <dc:creator>Davy Brion</dc:creator> <pubDate>Mon, 24 Aug 2009 04:47:44 +0000</pubDate> <guid
isPermaLink="false">http://davybrion.com/blog/?p=1520#comment-22306</guid> <description>@Jeremyand writing a boatload of repetitive and error-prone code over and over and over again isn&#039;t?</description> <content:encoded><![CDATA[<p>@Jeremy</p><p>and writing a boatload of repetitive and error-prone code over and over and over again isn&#8217;t?</p> ]]></content:encoded> </item> <item><title>By: Venu</title><link>http://davybrion.com/blog/2009/08/build-your-own-data-access-layer-mapping-classes-to-tables/comment-page-1/#comment-22304</link> <dc:creator>Venu</dc:creator> <pubDate>Mon, 24 Aug 2009 03:41:22 +0000</pubDate> <guid
isPermaLink="false">http://davybrion.com/blog/?p=1520#comment-22304</guid> <description>Thanks Davy.  I think this is awesome.I have been a user of NHibernate for a few years now and have not really taken the time to look under the hood.  Also, I am going to be starting work at a place where the team have rolled out their own ORM/DAL.  This gives me some perspective to compare and contrast.</description> <content:encoded><![CDATA[<p>Thanks Davy.  I think this is awesome.</p><p>I have been a user of NHibernate for a few years now and have not really taken the time to look under the hood.  Also, I am going to be starting work at a place where the team have rolled out their own ORM/DAL.  This gives me some perspective to compare and contrast.</p> ]]></content:encoded> </item> <item><title>By: Jeremy D. Miller</title><link>http://davybrion.com/blog/2009/08/build-your-own-data-access-layer-mapping-classes-to-tables/comment-page-1/#comment-22302</link> <dc:creator>Jeremy D. Miller</dc:creator> <pubDate>Mon, 24 Aug 2009 00:48:21 +0000</pubDate> <guid
isPermaLink="false">http://davybrion.com/blog/?p=1520#comment-22302</guid> <description>Dude, you&#039;re really depressing me with this series.  You gotta do what you gotta do, but you&#039;re still committing larceny against your customer -- even if they&#039;ve made you do it.</description> <content:encoded><![CDATA[<p>Dude, you&#8217;re really depressing me with this series.  You gotta do what you gotta do, but you&#8217;re still committing larceny against your customer &#8212; even if they&#8217;ve made you do it.</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 1/15 queries in 0.007 seconds using disk: basic
Object Caching 500/501 objects using disk: basic
Content Delivery Network via Amazon Web Services: CloudFront: d18sni7re4ly7f.cloudfront.net

Served from: davybrion.com @ 2012-02-09 03:41:27 -->
