<?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: MVC and LightSpeed &#8211; Part 4 &#8211; Model Binding</title>
	<atom:link href="http://www.mindscapehq.com/staff/jeremy/index.php/2009/03/aspnet-mvc-part4/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mindscapehq.com/staff/jeremy/index.php/2009/03/aspnet-mvc-part4/</link>
	<description>"behold the turtle, he only makes progress when he sticks his neck out"</description>
	<lastBuildDate>Thu, 29 Apr 2010 19:33:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jeremy Boyd</title>
		<link>http://www.mindscapehq.com/staff/jeremy/index.php/2009/03/aspnet-mvc-part4/comment-page-1/#comment-104</link>
		<dc:creator>Jeremy Boyd</dc:creator>
		<pubDate>Wed, 02 Sep 2009 03:03:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.mindscape.co.nz/staff/jeremy/?p=98#comment-104</guid>
		<description>Hi Grayson - the EntityModelBinder class is part of the community code solution which you can grab via SVN from here: https://code.mindscape.co.nz/repos/LightSpeed/Mvc/Trunk - you will want to compile this against whichever version of LightSpeed you are currently using :)

Alternatively you can just repurpose the class to your own needs and include it directly in your MVC app.


Jeremy</description>
		<content:encoded><![CDATA[<p>Hi Grayson &#8211; the EntityModelBinder class is part of the community code solution which you can grab via SVN from here: <a href="https://code.mindscape.co.nz/repos/LightSpeed/Mvc/Trunk" rel="nofollow">https://code.mindscape.co.nz/repos/LightSpeed/Mvc/Trunk</a> &#8211; you will want to compile this against whichever version of LightSpeed you are currently using <img src='http://www.mindscapehq.com/staff/jeremy/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Alternatively you can just repurpose the class to your own needs and include it directly in your MVC app.</p>
<p>Jeremy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: grayson mitchell</title>
		<link>http://www.mindscapehq.com/staff/jeremy/index.php/2009/03/aspnet-mvc-part4/comment-page-1/#comment-103</link>
		<dc:creator>grayson mitchell</dc:creator>
		<pubDate>Wed, 02 Sep 2009 02:38:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.mindscape.co.nz/staff/jeremy/?p=98#comment-103</guid>
		<description>A comment on putting what you have discussed into practice re Model Binder.  I am doing a &#039;quick&#039; evaluation of Lightspeed for work, and as part of that I wanted to implement a model binder (as in Linq to sql this happens out of the box). 
So your blog looked to be just what I needed.  However there are a couple of issues.
1\ Links to the source code are a little unclear (there is a link to EntityModelBinder.cs, which uses Mindscape.LightSpeed.Mvc.Helpers - so is not usable on its own - for example)
2\ The FilmFestival example code is written in a later version of Lightspeed than production - the Mindscape.LightSpeed.Mvc.dll requires later version of Lightspeed.</description>
		<content:encoded><![CDATA[<p>A comment on putting what you have discussed into practice re Model Binder.  I am doing a &#8216;quick&#8217; evaluation of Lightspeed for work, and as part of that I wanted to implement a model binder (as in Linq to sql this happens out of the box).<br />
So your blog looked to be just what I needed.  However there are a couple of issues.<br />
1\ Links to the source code are a little unclear (there is a link to EntityModelBinder.cs, which uses Mindscape.LightSpeed.Mvc.Helpers &#8211; so is not usable on its own &#8211; for example)<br />
2\ The FilmFestival example code is written in a later version of Lightspeed than production &#8211; the Mindscape.LightSpeed.Mvc.dll requires later version of Lightspeed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tutoriales ASP.NET MVC de Mindscape &#171; Mi Blog</title>
		<link>http://www.mindscapehq.com/staff/jeremy/index.php/2009/03/aspnet-mvc-part4/comment-page-1/#comment-30</link>
		<dc:creator>Tutoriales ASP.NET MVC de Mindscape &#171; Mi Blog</dc:creator>
		<pubDate>Fri, 20 Mar 2009 08:21:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.mindscape.co.nz/staff/jeremy/?p=98#comment-30</guid>
		<description>[...] MVC and LightSpeed – Part 4 – Model Binding   Blogged with the Flock Browser [...]</description>
		<content:encoded><![CDATA[<p>[...] MVC and LightSpeed – Part 4 – Model Binding   Blogged with the Flock Browser [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jeremy</title>
		<link>http://www.mindscapehq.com/staff/jeremy/index.php/2009/03/aspnet-mvc-part4/comment-page-1/#comment-27</link>
		<dc:creator>jeremy</dc:creator>
		<pubDate>Thu, 19 Mar 2009 23:38:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.mindscape.co.nz/staff/jeremy/?p=98#comment-27</guid>
		<description>Hi Jake :)

We generally code gen DTO&#039;s, and based on feedback we have added this in to the LightSpeed designer to auto-gen these if you need them.

In terms of the scenario where you need to touch the database to validate, this would be the case for a [ValidateUnique] field - LightSpeed handles this internally for you so generally you dont need to worry about it directly. 

Assuming this isnt the case, it sounds more like some additional validation logic to be performed in the Controller action.

LightSpeed entities also have an OnValidate() which you can override with any custom validation code as required - this is inline with pretty much every other validation framework :)</description>
		<content:encoded><![CDATA[<p>Hi Jake <img src='http://www.mindscapehq.com/staff/jeremy/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>We generally code gen DTO&#8217;s, and based on feedback we have added this in to the LightSpeed designer to auto-gen these if you need them.</p>
<p>In terms of the scenario where you need to touch the database to validate, this would be the case for a [ValidateUnique] field &#8211; LightSpeed handles this internally for you so generally you dont need to worry about it directly. </p>
<p>Assuming this isnt the case, it sounds more like some additional validation logic to be performed in the Controller action.</p>
<p>LightSpeed entities also have an OnValidate() which you can override with any custom validation code as required &#8211; this is inline with pretty much every other validation framework <img src='http://www.mindscapehq.com/staff/jeremy/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jake Scott</title>
		<link>http://www.mindscapehq.com/staff/jeremy/index.php/2009/03/aspnet-mvc-part4/comment-page-1/#comment-26</link>
		<dc:creator>Jake Scott</dc:creator>
		<pubDate>Thu, 19 Mar 2009 23:28:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.mindscape.co.nz/staff/jeremy/?p=98#comment-26</guid>
		<description>I like how tidy the controller logic is and seems to be inline with the single responsibility principle. How would you handle a scenario where the model object needs to touch the database to know if it is valid - for example having a unique email address? On a recent project I used ViewModel objects decorated with Validation Attributes (kinda like DTO&#039;s) to handle user input. Then if valid I would pass these objects of to a service layer to co-ordinate domain validation and mapping of the DTO&#039;s to the Model objects. Worked alright but I think I will use a automapper in the future for this, or I know you guys codegen DTO objects or something.</description>
		<content:encoded><![CDATA[<p>I like how tidy the controller logic is and seems to be inline with the single responsibility principle. How would you handle a scenario where the model object needs to touch the database to know if it is valid &#8211; for example having a unique email address? On a recent project I used ViewModel objects decorated with Validation Attributes (kinda like DTO&#8217;s) to handle user input. Then if valid I would pass these objects of to a service layer to co-ordinate domain validation and mapping of the DTO&#8217;s to the Model objects. Worked alright but I think I will use a automapper in the future for this, or I know you guys codegen DTO objects or something.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DotNetShoutout</title>
		<link>http://www.mindscapehq.com/staff/jeremy/index.php/2009/03/aspnet-mvc-part4/comment-page-1/#comment-25</link>
		<dc:creator>DotNetShoutout</dc:creator>
		<pubDate>Thu, 19 Mar 2009 22:44:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.mindscape.co.nz/staff/jeremy/?p=98#comment-25</guid>
		<description>&lt;strong&gt;ASP.NET MVC Tutorial Part 4: Model binding and easy validation with xVal and LightSpeed...&lt;/strong&gt;

Thank you for submitting this cool story - Trackback from DotNetShoutout...</description>
		<content:encoded><![CDATA[<p><strong>ASP.NET MVC Tutorial Part 4: Model binding and easy validation with xVal and LightSpeed&#8230;</strong></p>
<p>Thank you for submitting this cool story &#8211; Trackback from DotNetShoutout&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

