<?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 for Robert Corvus</title>
	<atom:link href="http://robertcorvus.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://robertcorvus.com</link>
	<description>Software Development for Insanely Smart People</description>
	<lastBuildDate>Tue, 10 Apr 2012 01:41:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>Comment on Kinect For Windows SDK now available for commercial use by Kinect SDK released, works only on Windows 7, illegal to actually use &#124; Robert Corvus</title>
		<link>http://robertcorvus.com/kinect-for-windows-now-commercial/comment-page-1/#comment-400</link>
		<dc:creator>Kinect SDK released, works only on Windows 7, illegal to actually use &#124; Robert Corvus</dc:creator>
		<pubDate>Tue, 10 Apr 2012 01:41:38 +0000</pubDate>
		<guid isPermaLink="false">http://robertcorvus.com/?p=340#comment-400</guid>
		<description>[...] UPDATE: the commercial license of the Kinect For Windows SDK has been released [...]</description>
		<content:encoded><![CDATA[<p>[...] UPDATE: the commercial license of the Kinect For Windows SDK has been released [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Breaking change in ASP.NET 4.0 affects query strings with single quotes by Cialis</title>
		<link>http://robertcorvus.com/breaking-change-in-asp-net-4-0-affects-query-strings-with-single-quotes/comment-page-1/#comment-395</link>
		<dc:creator>Cialis</dc:creator>
		<pubDate>Fri, 10 Feb 2012 05:18:08 +0000</pubDate>
		<guid isPermaLink="false">http://robertcorvus.com/breaking-change-in-asp-net-4-0-affects-query-strings-with-single-quotes/#comment-395</guid>
		<description>Greetings pal! I thoroughly agree with your experience.</description>
		<content:encoded><![CDATA[<p>Greetings pal! I thoroughly agree with your experience.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Breaking change in ASP.NET 4.0 affects query strings with single quotes by Prices</title>
		<link>http://robertcorvus.com/breaking-change-in-asp-net-4-0-affects-query-strings-with-single-quotes/comment-page-1/#comment-373</link>
		<dc:creator>Prices</dc:creator>
		<pubDate>Fri, 16 Dec 2011 14:15:49 +0000</pubDate>
		<guid isPermaLink="false">http://robertcorvus.com/breaking-change-in-asp-net-4-0-affects-query-strings-with-single-quotes/#comment-373</guid>
		<description>Strongly suggest adding a &quot;google+&quot; button for the blog!</description>
		<content:encoded><![CDATA[<p>Strongly suggest adding a &#8220;google+&#8221; button for the blog!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to run Octave in Console2 by Phil</title>
		<link>http://robertcorvus.com/how-to-run-octave-in-console2/comment-page-1/#comment-365</link>
		<dc:creator>Phil</dc:creator>
		<pubDate>Mon, 05 Dec 2011 20:07:42 +0000</pubDate>
		<guid isPermaLink="false">http://robertcorvus.com/how-to-run-octave-in-console2/#comment-365</guid>
		<description>This mostly works.  But running &quot;dir&quot; causes Octave to never return to the prompt.  I have cygwin installed, and running &quot;ls&quot; causes Octave to crash.</description>
		<content:encoded><![CDATA[<p>This mostly works.  But running &#8220;dir&#8221; causes Octave to never return to the prompt.  I have cygwin installed, and running &#8220;ls&#8221; causes Octave to crash.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to show nested entity&#8217;s properties in an RDLC report by Marina</title>
		<link>http://robertcorvus.com/how-to-show-nested-entitys-properties-in-an-rdlc-report/comment-page-1/#comment-297</link>
		<dc:creator>Marina</dc:creator>
		<pubDate>Thu, 22 Sep 2011 05:18:35 +0000</pubDate>
		<guid isPermaLink="false">http://robertcorvus.com/?p=21#comment-297</guid>
		<description>You have really interesting blog, keep up posting such informative posts!</description>
		<content:encoded><![CDATA[<p>You have really interesting blog, keep up posting such informative posts!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Easy way to get MVC root path in javascript by Marina</title>
		<link>http://robertcorvus.com/easy-way-to-get-mvc-root-path-in-javascript/comment-page-1/#comment-295</link>
		<dc:creator>Marina</dc:creator>
		<pubDate>Thu, 22 Sep 2011 03:34:47 +0000</pubDate>
		<guid isPermaLink="false">http://robertcorvus.com/?p=5#comment-295</guid>
		<description>You have really interesting blog, keep up posting such informative posts!</description>
		<content:encoded><![CDATA[<p>You have really interesting blog, keep up posting such informative posts!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Automatically validate and format data with ASP.NET MVC 3 and jquery by Robert Corvus</title>
		<link>http://robertcorvus.com/automatically-validate-and-format-data-with-asp-net-mvc-and-jquery/comment-page-1/#comment-264</link>
		<dc:creator>Robert Corvus</dc:creator>
		<pubDate>Sun, 11 Sep 2011 01:09:36 +0000</pubDate>
		<guid isPermaLink="false">http://robertcorvus.com/?p=36#comment-264</guid>
		<description>Whenever I generate the models from the database, I copy the classes out so I have more control over them, so I can add the model attributes, etc.  That would definitely work for you, but it may not have the convenience you&#039;re looking for.  You can try posting the question on StackOverflow.com and see if anyone has some good ideas.</description>
		<content:encoded><![CDATA[<p>Whenever I generate the models from the database, I copy the classes out so I have more control over them, so I can add the model attributes, etc.  That would definitely work for you, but it may not have the convenience you&#8217;re looking for.  You can try posting the question on StackOverflow.com and see if anyone has some good ideas.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Automatically validate and format data with ASP.NET MVC 3 and jquery by Tom Regan</title>
		<link>http://robertcorvus.com/automatically-validate-and-format-data-with-asp-net-mvc-and-jquery/comment-page-1/#comment-257</link>
		<dc:creator>Tom Regan</dc:creator>
		<pubDate>Fri, 09 Sep 2011 11:53:45 +0000</pubDate>
		<guid isPermaLink="false">http://robertcorvus.com/?p=36#comment-257</guid>
		<description>Great posting, thank you.

One problem with the attributes that I wonder if you have already solved.  I&#039;m using Database First, where the MS Entity Framework generates the data model classes as *.tt files, so I&#039;m using meta data classes to hold the validators and other attributes (Required, DisplayName, etc).

I assumed these metadata classes would also hold the custom attributes that you suggest in this article (eg SocialSecurityNumber,PhoneNumber).  

Unfortunately your GetModelAttribute method does not see the attributes when they are on the metadata classes.  The call to GetCustomAttributes comes back empty.  If I add the attributes directly to the data model class generated by the Entity Framework (the *.tt class) your method works perfectly, but of course it is bad practice to mark up the *.tt classes, since they are overwritten when the model is updated.

A workaround is the performance optimization that you suggest (creating separate SocialSecurityNumber and PhoneNumber templates and calling them by name).  But I&#039;m wondering, is there a way to read the attributes from the meta data classes in a method like your GetModelAttribute extension?</description>
		<content:encoded><![CDATA[<p>Great posting, thank you.</p>
<p>One problem with the attributes that I wonder if you have already solved.  I&#8217;m using Database First, where the MS Entity Framework generates the data model classes as *.tt files, so I&#8217;m using meta data classes to hold the validators and other attributes (Required, DisplayName, etc).</p>
<p>I assumed these metadata classes would also hold the custom attributes that you suggest in this article (eg SocialSecurityNumber,PhoneNumber).  </p>
<p>Unfortunately your GetModelAttribute method does not see the attributes when they are on the metadata classes.  The call to GetCustomAttributes comes back empty.  If I add the attributes directly to the data model class generated by the Entity Framework (the *.tt class) your method works perfectly, but of course it is bad practice to mark up the *.tt classes, since they are overwritten when the model is updated.</p>
<p>A workaround is the performance optimization that you suggest (creating separate SocialSecurityNumber and PhoneNumber templates and calling them by name).  But I&#8217;m wondering, is there a way to read the attributes from the meta data classes in a method like your GetModelAttribute extension?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Automatically validate and format data with ASP.NET MVC 3 and jquery by Robert Corvus</title>
		<link>http://robertcorvus.com/automatically-validate-and-format-data-with-asp-net-mvc-and-jquery/comment-page-1/#comment-247</link>
		<dc:creator>Robert Corvus</dc:creator>
		<pubDate>Mon, 05 Sep 2011 23:15:59 +0000</pubDate>
		<guid isPermaLink="false">http://robertcorvus.com/?p=36#comment-247</guid>
		<description>Sorry I didn’t get back to you sooner. Thanks for posting your code!</description>
		<content:encoded><![CDATA[<p>Sorry I didn’t get back to you sooner. Thanks for posting your code!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Automatically validate and format data with ASP.NET MVC 3 and jquery by Prasad</title>
		<link>http://robertcorvus.com/automatically-validate-and-format-data-with-asp-net-mvc-and-jquery/comment-page-1/#comment-244</link>
		<dc:creator>Prasad</dc:creator>
		<pubDate>Mon, 05 Sep 2011 02:10:49 +0000</pubDate>
		<guid isPermaLink="false">http://robertcorvus.com/?p=36#comment-244</guid>
		<description>I got it.

All i need just add 

 [Required(ErrorMessage=&quot;* Required.&quot;)]    

Thanks anyway.</description>
		<content:encoded><![CDATA[<p>I got it.</p>
<p>All i need just add </p>
<p> [Required(ErrorMessage="* Required.")]    </p>
<p>Thanks anyway.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

