<?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: ASP.NET MVC Model Binders</title>
	<atom:link href="http://www.dalsoft.co.uk/blog/index.php/2010/05/21/mvc-model-binders/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dalsoft.co.uk/blog/index.php/2010/05/21/mvc-model-binders/</link>
	<description>Dalsoft&#039;s Blog</description>
	<lastBuildDate>Sat, 03 Dec 2011 15:24:16 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Jarrett</title>
		<link>http://www.dalsoft.co.uk/blog/index.php/2010/05/21/mvc-model-binders/comment-page-1/#comment-3104</link>
		<dc:creator>Jarrett</dc:creator>
		<pubDate>Sun, 16 Oct 2011 01:57:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.dalsoft.co.uk/blog/?p=758#comment-3104</guid>
		<description>I echo Andrew Knox here in saying finally, a decent post on how to easily extend the default model binder.</description>
		<content:encoded><![CDATA[<p>I echo Andrew Knox here in saying finally, a decent post on how to easily extend the default model binder.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DalSoft</title>
		<link>http://www.dalsoft.co.uk/blog/index.php/2010/05/21/mvc-model-binders/comment-page-1/#comment-2304</link>
		<dc:creator>DalSoft</dc:creator>
		<pubDate>Mon, 11 Apr 2011 21:32:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dalsoft.co.uk/blog/?p=758#comment-2304</guid>
		<description>You shouldn&#039;t connect to the database via a model binder instead get the data from the database in the controllers action. The model binder is for binding the http request to your model, from the controllers action you then use the model values to query your database. If your worried about performance consider system.web.caching or output caching, if you have the choice go for output caching</description>
		<content:encoded><![CDATA[<p>You shouldn&#8217;t connect to the database via a model binder instead get the data from the database in the controllers action. The model binder is for binding the http request to your model, from the controllers action you then use the model values to query your database. If your worried about performance consider system.web.caching or output caching, if you have the choice go for output caching</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott</title>
		<link>http://www.dalsoft.co.uk/blog/index.php/2010/05/21/mvc-model-binders/comment-page-1/#comment-2298</link>
		<dc:creator>Scott</dc:creator>
		<pubDate>Mon, 11 Apr 2011 16:49:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.dalsoft.co.uk/blog/?p=758#comment-2298</guid>
		<description>Thanks for this - very concise. I&#039;m stuck at an architectural challenge, that you touch on in your Best Practice section. In real life, the Offices are out in a database somewhere, so how do you go fetch the appropriate record in a ModelBinder.
I agree that the ModelBinder should not be calling directly to the database, but the only other option I can see is to add all the Offices into the ViewBag (or similar) and iterate through them via the controllerContext.
But that seems quite expensive, especially if you had 43,000 offices...</description>
		<content:encoded><![CDATA[<p>Thanks for this &#8211; very concise. I&#8217;m stuck at an architectural challenge, that you touch on in your Best Practice section. In real life, the Offices are out in a database somewhere, so how do you go fetch the appropriate record in a ModelBinder.<br />
I agree that the ModelBinder should not be calling directly to the database, but the only other option I can see is to add all the Offices into the ViewBag (or similar) and iterate through them via the controllerContext.<br />
But that seems quite expensive, especially if you had 43,000 offices&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Knox</title>
		<link>http://www.dalsoft.co.uk/blog/index.php/2010/05/21/mvc-model-binders/comment-page-1/#comment-2111</link>
		<dc:creator>Andrew Knox</dc:creator>
		<pubDate>Sat, 12 Mar 2011 15:03:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.dalsoft.co.uk/blog/?p=758#comment-2111</guid>
		<description>Thank you. Finally a decent article on the basics model binding (well, I&#039;d not come across any at least!), helped me out a lot :)</description>
		<content:encoded><![CDATA[<p>Thank you. Finally a decent article on the basics model binding (well, I&#8217;d not come across any at least!), helped me out a lot <img src='http://www.dalsoft.co.uk/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RCM</title>
		<link>http://www.dalsoft.co.uk/blog/index.php/2010/05/21/mvc-model-binders/comment-page-1/#comment-2078</link>
		<dc:creator>RCM</dc:creator>
		<pubDate>Wed, 09 Mar 2011 13:33:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.dalsoft.co.uk/blog/?p=758#comment-2078</guid>
		<description>Great article.  In the custom model binder, is there a way to re-validate the model  after you update it with the List of Offices?   Say your Offices model had DataAnnotations on it.  Is there a way to validate the model and have it update the ModelState with any errors?</description>
		<content:encoded><![CDATA[<p>Great article.  In the custom model binder, is there a way to re-validate the model  after you update it with the List of Offices?   Say your Offices model had DataAnnotations on it.  Is there a way to validate the model and have it update the ModelState with any errors?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kyle Russell</title>
		<link>http://www.dalsoft.co.uk/blog/index.php/2010/05/21/mvc-model-binders/comment-page-1/#comment-908</link>
		<dc:creator>Kyle Russell</dc:creator>
		<pubDate>Fri, 27 Aug 2010 19:20:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.dalsoft.co.uk/blog/?p=758#comment-908</guid>
		<description>Could you post an example of the improvement you proposed by not using the magic string?  I&#039;m curious how that would work.  Finding decent articles about things like model binders is not easy.  Your posts have been extremely helpful.  Thanks</description>
		<content:encoded><![CDATA[<p>Could you post an example of the improvement you proposed by not using the magic string?  I&#8217;m curious how that would work.  Finding decent articles about things like model binders is not easy.  Your posts have been extremely helpful.  Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ASP.NET MVC 2 -Template Helpers Allow You to Specify Extra View Data</title>
		<link>http://www.dalsoft.co.uk/blog/index.php/2010/05/21/mvc-model-binders/comment-page-1/#comment-701</link>
		<dc:creator>ASP.NET MVC 2 -Template Helpers Allow You to Specify Extra View Data</dc:creator>
		<pubDate>Fri, 30 Jul 2010 21:41:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dalsoft.co.uk/blog/?p=758#comment-701</guid>
		<description>[...] nasty hacks. In this post we are going to continue our Employee example from my MVC Templates and MVC Model Binders posts, we will change the code to make use of the new [...]</description>
		<content:encoded><![CDATA[<p>[...] nasty hacks. In this post we are going to continue our Employee example from my MVC Templates and MVC Model Binders posts, we will change the code to make use of the new [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carlos</title>
		<link>http://www.dalsoft.co.uk/blog/index.php/2010/05/21/mvc-model-binders/comment-page-1/#comment-654</link>
		<dc:creator>Carlos</dc:creator>
		<pubDate>Sun, 18 Jul 2010 14:15:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.dalsoft.co.uk/blog/?p=758#comment-654</guid>
		<description>Beautiful code and explanation. Thanks for the hard work! ;)</description>
		<content:encoded><![CDATA[<p>Beautiful code and explanation. Thanks for the hard work! <img src='http://www.dalsoft.co.uk/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Methods</title>
		<link>http://www.dalsoft.co.uk/blog/index.php/2010/05/21/mvc-model-binders/comment-page-1/#comment-482</link>
		<dc:creator>Methods</dc:creator>
		<pubDate>Sun, 06 Jun 2010 23:58:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.dalsoft.co.uk/blog/?p=758#comment-482</guid>
		<description>good information, you write it very clean. I am very lucky to get this tips from you.</description>
		<content:encoded><![CDATA[<p>good information, you write it very clean. I am very lucky to get this tips from you.</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: basic (Requested URI is rejected)
Database Caching 4/15 queries in 0.011 seconds using disk: basic
Object Caching 366/371 objects using disk: basic

Served from: www.dalsoft.co.uk @ 2012-02-08 02:28:22 -->
