<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>How to Use Attribute Validation in ASP.NET Dynamic Data Applications</title><link>http://www.asp.net</link><pubDate>Sat, 23 Apr 2011 09:09:21 GMT</pubDate><generator>umbraco</generator><description>Comments for How to Use Attribute Validation in ASP.NET Dynamic Data Applications</description><language>en</language><atom:link href="http://www.asp.net/rss/comments/33701" rel="self" type="application/rss+xml" /><item><title>Comment Posted by galil</title><link>http://www.asp.net/web-forms/videos/aspnet-dynamic-data/how-to-use-attribute-validation-in-aspnet-dynamic-data-applications</link><pubDate>Tue, 11 Nov 2008 21:36:49 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000003059</guid><description><![CDATA[ <p>I really enjoyed watching your 6 videos. I am looking foreward for the rest. So when can we expect the next one?</p> <p>Thanks very much for the the great work you did.. </p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/galil.jpg?forceidenticon=false&amp;dt=635052057000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by Ragan</title><link>http://www.asp.net/web-forms/videos/aspnet-dynamic-data/how-to-use-attribute-validation-in-aspnet-dynamic-data-applications</link><pubDate>Sun, 16 Nov 2008 02:58:32 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000003060</guid><description><![CDATA[ <p>These videos have been a very good introduction to .NET Dynamic Data, trying to replicate the last video, I added the partial class but for some &quot;strange&quot; reason I do not get intellisense when adding the &quot;Using System.Web.DynamicData;&quot; (I&#39;m using c#)</p> <p>Anyway that should be solved by me, I just wanted to say that these videos are great!</p> <p>When should we expect to have another video? I&#39;m the middle of definning where to go with the migration of a old .net 1.1 Web application and I&#39;d like to use .Net Dynamica Data.</p> <p>Regards</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/Ragan.jpg?forceidenticon=false&amp;dt=635052057000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by booksnore</title><link>http://www.asp.net/web-forms/videos/aspnet-dynamic-data/how-to-use-attribute-validation-in-aspnet-dynamic-data-applications</link><pubDate>Sun, 16 Nov 2008 20:18:31 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000003061</guid><description><![CDATA[ <p>Thank you for the videos so far. Can you explain how .NET Dynamic Data could be used where you have one website serving multiple databases all of the same schema. For example my website www.soccer--in-the-us.com customer RedBull logs in with their credentials and the code behind connects them to the RedBull database but customer LA Galaxy will use the same site log in but in their case the code behind connects them to the LA Galaxy database of the same schema design as the RedBull database.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/booksnore.jpg?forceidenticon=false&amp;dt=635052057000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by JoeStagner</title><link>http://www.asp.net/web-forms/videos/aspnet-dynamic-data/how-to-use-attribute-validation-in-aspnet-dynamic-data-applications</link><pubDate>Mon, 17 Nov 2008 08:27:08 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000003062</guid><description><![CDATA[ <p>Thanls guys. I&#39;m traveling for a couple of weeks but working on additional Dynamic Data Videos. Should have a batch very soon. </p> <p>Ragan, send me email if I can help with your decision.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/JoeStagner.jpg?forceidenticon=false&amp;dt=635052057000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by Phretman</title><link>http://www.asp.net/web-forms/videos/aspnet-dynamic-data/how-to-use-attribute-validation-in-aspnet-dynamic-data-applications</link><pubDate>Sun, 18 Jan 2009 11:42:51 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000003063</guid><description><![CDATA[ <p>I agree these videos are very well done and easy to understand. I&#39;m trying to do this using Entity Data Framework instead of Linq to SQL Class, so I have an .edmx file instead of .dbml. Can this be done? </p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/Phretman.jpg?forceidenticon=false&amp;dt=635052057000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by danvladut</title><link>http://www.asp.net/web-forms/videos/aspnet-dynamic-data/how-to-use-attribute-validation-in-aspnet-dynamic-data-applications</link><pubDate>Sat, 13 Feb 2010 13:11:58 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000003064</guid><description><![CDATA[ <p>Great series of videos, they give a good idea of what ASP.Net DynamicData is about.</p><p>One thing though: you mentioned a few times &quot;validation in Data Access Layer&quot;. Wasn&#39;t that supposed to be a responsibility of the Domain Layer? Else you will get the same result as if you implement it in the Presentation layer - if you decide to replace your DAL (e.g with E.F.) then you lose your validations.</p><p>Btw. that would be a nice subject for a future video that I think a lot of developers would like to see.</p><p>But probably this comes with Linq to SQL mixing the DAL and DL into one layer (which you here call it DAL), because looking at the code you actually implement your validation in what should be the Domain classes like Product class.</p><p>I honestly believe that those examples of anti-pattern, anti-architecture thingies makes the community suspicious  more than generated code.</p><p></p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/danvladut.jpg?forceidenticon=false&amp;dt=635052057000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by pwmfs33</title><link>http://www.asp.net/web-forms/videos/aspnet-dynamic-data/how-to-use-attribute-validation-in-aspnet-dynamic-data-applications</link><pubDate>Fri, 28 Jan 2011 15:02:25 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000011825</guid><description><![CDATA[ <p>Does this not work with Web Developer 2010? I copied your C# code and it allows me to violate the range, e.g., 155 units in stock.</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/pwmfs33.jpg?forceidenticon=false&amp;dt=635052057000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by mythlandia</title><link>http://www.asp.net/web-forms/videos/aspnet-dynamic-data/how-to-use-attribute-validation-in-aspnet-dynamic-data-applications</link><pubDate>Sat, 02 Apr 2011 05:25:35 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000012683</guid><description><![CDATA[ <p>There is a lovely &quot;gotcha&quot; with Visual Studio 2010; when the models are created the wizard adds a new namespace (e.g. NorthwindModel) the name of which is enterable on the final page of the wizard. When you add your partial class for the table it is essential that you are within the model namespace or *nothing* works: e.g.</p><p></p><p>using System.ComponentModel.DataAnnotations;</p><p></p><p>namespace NorthwindModel</p><p>{</p><p>    /// &lt;summary&gt;</p><p>    /// Summary description for Product</p><p>    /// &lt;/summary&gt;</p><p>    [MetadataType(typeof(ProductMetadata))]</p><p>    public partial class Product</p><p>    {</p><p>    }</p><p></p><p>    public class ProductMetadata</p><p>    {</p><p>        [Range(0, 10), Display(Name = &quot;Units in Stock&quot;)]</p><p>        public object UnitsInStock;</p><p>    }</p><p>}</p><p></p><p>Finally, some examples have the metadata object as a property with {get;set;} dummy methods.  This is totally irrelevant and they may be included or omitted as per your personal style.</p><p></p><p></p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/mythlandia.jpg?forceidenticon=false&amp;dt=635052057000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by KaNanga</title><link>http://www.asp.net/web-forms/videos/aspnet-dynamic-data/how-to-use-attribute-validation-in-aspnet-dynamic-data-applications</link><pubDate>Sat, 23 Apr 2011 09:09:21 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000012945</guid><description><![CDATA[ <p>Like attending class but with a rewind button!  I love it!</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/KaNanga.jpg?forceidenticon=false&amp;dt=635052057000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item></channel></rss>