<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : EF DataAnnotations vs Devforce DataAnotations</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : Community Forum : EF DataAnnotations vs Devforce DataAnotations</description>
  <pubDate>Sun, 12 Apr 2026 22:05:32 -700</pubDate>
  <lastBuildDate>Wed, 18 Jul 2012 11:20:43 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=3544</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>EF DataAnnotations vs Devforce DataAnotations :   Thank you very much.This is...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3544&amp;PID=14054#14054</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1114" rel="nofollow">rbautistaole</a><br /><strong>Subject:</strong> 3544<br /><strong>Posted:</strong> 18-Jul-2012 at 11:20am<br /><br />Thank you very much.<div>&nbsp;</div><div>This is a more clear explanation.</div><div>&nbsp;</div><div>Now, you say "The above recommendation was written before Code-First and it still holds for Model-First and DB-First"</div><div>&nbsp;</div><div>I&nbsp;think that is necessary to divide the DEVFORCE documentation in two big groups: "Code first" and "Modelfirst or dbfirst". I think that would be more clear if each group have the same topics as now: Start, Model, Query, Display, Create Modify and Delete, Validate etc. I feel that exist specific tips and tricks to each approach. May be some information is shared.</div><div>&nbsp;</div><div>thanks again.</div><div>&nbsp;</div>]]>
   </description>
   <pubDate>Wed, 18 Jul 2012 11:20:43 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3544&amp;PID=14054#14054</guid>
  </item> 
  <item>
   <title>EF DataAnnotations vs Devforce DataAnotations : Let me ellaborate on what I said....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3544&amp;PID=14052#14052</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1005" rel="nofollow">mgood</a><br /><strong>Subject:</strong> 3544<br /><strong>Posted:</strong> 18-Jul-2012 at 10:16am<br /><br /><P>Let me ellaborate on what I said. I realize it was a bit short. </P><DIV></DIV>The above recommendation was written before Code-First and it still holds for Model-First and DB-First. In the latter two you generally select one or the other, because DF generates the code and not the developer. In this case we still recommend DF Verification, because it is a superset and there's no compelling reason to mix .NET attributes with DF Verifiers. <DIV>&nbsp;</DIV><DIV>In Code-First you have options. Mapping and validation are two seperate concerns and it is unfortunate that Microsoft decided to fold them in one with the data annotation attributes. DF keeps them seperate for good reasons, so we don't want DF Verifiers to describe the mapping. </DIV><DIV>&nbsp;</DIV><DIV>As I said there are options with CF, so let's look at them. There is the purist approach. In the purist approach you'll leave your entities free of attributes alltogether. To describe the mapping you rely on EF conventions and the Fluent API, where conventions don't apply. This way you don't use the data annotation attributes at all. Now you can use DF Verifiers to describe all your validation rules. DF also allows you to define the validation rules outside of the entity class, leaving your entity classes free of validation attributes.</DIV><DIV>&nbsp;</DIV><DIV>Most developers use a combination of EF conventions, data annotation attributes and Fluent API. It's less code to write in the end. In this case you are in the situation where you find yourself having a "large" amount of code that already uses .NET attributes. The word "large" is relative here, but you get my point. You start with the .NET attributes. At any point you can augment with DF Verifiers when it gets past basic validation or you can use the Cocktail custom validation approach or a combination of all three. </DIV><DIV>&nbsp;</DIV><DIV>There is no clear line in the sand, or at least&nbsp;we haven't settled on one. In TempHire I follow the most common approach. I started with EF conventions and then added data annotations attributes, where EF conventions don't apply and then used the Fluent API for DB Initialization. This is the natural path most developers follow. If you follow this path then you'll primarly use .NET validation and resort to DF Verifiers or Cocktail custom validation when you reach the limits of .NET validation.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 18 Jul 2012 10:16:07 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3544&amp;PID=14052#14052</guid>
  </item> 
  <item>
   <title>EF DataAnnotations vs Devforce DataAnotations :   Well, seems to me that DevForce...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3544&amp;PID=14049#14049</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1114" rel="nofollow">rbautistaole</a><br /><strong>Subject:</strong> 3544<br /><strong>Posted:</strong> 18-Jul-2012 at 9:03am<br /><br />Well, seems to me that DevForce thinks in another way:<div>&nbsp;</div><div>From documentation in <a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/validati&#111;n-generate-attributes" target="_blank">http://drc.ideablade.com/xwiki/bin/view/Documentation/validation-generate-attributes</a></div><div>&nbsp;</div><div>"We recommend that you use use <em><span ="wiki"><a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/validati&#111;n-generate-attributes" target="_blank"><u><font color="#0066cc">DevForceVerification</font></u></a></span></em> unless you have a compelling reason to do otherwise (e.g., you have a large amount of code that already uses the .NET attributes and facilities). DevForce verification provides a superset of the capabilities provided by .NET validation."</div><div>&nbsp;</div><div>Regards</div><div>&nbsp;</div>]]>
   </description>
   <pubDate>Wed, 18 Jul 2012 09:03:56 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3544&amp;PID=14049#14049</guid>
  </item> 
  <item>
   <title>EF DataAnnotations vs Devforce DataAnotations :   The DF Verifiers go back to...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3544&amp;PID=14039#14039</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1005" rel="nofollow">mgood</a><br /><strong>Subject:</strong> 3544<br /><strong>Posted:</strong> 16-Jul-2012 at 8:19pm<br /><br />The DF Verifiers go back to before .NET had comprehensive validation attributes. To some extent they are superseded by the .NET attributes today. They are still useful if you wish to implement your own verifiers, but for standard type validation the .NET attributes pretty much cover that space.]]>
   </description>
   <pubDate>Mon, 16 Jul 2012 20:19:30 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3544&amp;PID=14039#14039</guid>
  </item> 
  <item>
   <title>EF DataAnnotations vs Devforce DataAnotations :   A Suggestion to DevForce would...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3544&amp;PID=14038#14038</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1114" rel="nofollow">rbautistaole</a><br /><strong>Subject:</strong> 3544<br /><strong>Posted:</strong> 16-Jul-2012 at 8:05pm<br /><br />A Suggestion to DevForce would be that your Verifiers to describe the mapping and validating as the DataAnnotations.<div>&nbsp;</div><div>May be you can to influence on the DevForce team. :)</div>]]>
   </description>
   <pubDate>Mon, 16 Jul 2012 20:05:54 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3544&amp;PID=14038#14038</guid>
  </item> 
  <item>
   <title>EF DataAnnotations vs Devforce DataAnotations : You are pretty much forced to...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3544&amp;PID=14037#14037</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1005" rel="nofollow">mgood</a><br /><strong>Subject:</strong> 3544<br /><strong>Posted:</strong> 16-Jul-2012 at 6:58pm<br /><br />You are pretty much forced to use .NET Data Annotations if you do Code-First. Unfortunately, the data annotation attributes perform double duty. They describe your mapping as we'll as perform validation. If you add DF verifiers on top, you get duplicate validation errors because DF already observes the data annotation attributes.<br /><br />So it's not really a recommendation, but rather you don't have much of a choice with Code-First. ]]>
   </description>
   <pubDate>Mon, 16 Jul 2012 18:58:23 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3544&amp;PID=14037#14037</guid>
  </item> 
  <item>
   <title>EF DataAnnotations vs Devforce DataAnotations :   In examine TempHire app i...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3544&amp;PID=14035#14035</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1114" rel="nofollow">rbautistaole</a><br /><strong>Subject:</strong> 3544<br /><strong>Posted:</strong> 16-Jul-2012 at 6:36pm<br /><br />In examine TempHire app i see that your entities are decorated with the EF DataAnnotations (Required, StringLenght)&nbsp;instead the DevForce Data Annotations (RequiriedVerifier, StringhtLenghVerifier). I used too the EF DataAnotattions because&nbsp;the EF DataAnotations place constraint over the DataBase (NOT NULL, string sizes) and the DF not.<div>&nbsp;</div><div>Do you recommend&nbsp;EF DataAnnotations over DevForce DataAnotations? </div><div>&nbsp;</div><div>thanks</div><div>&nbsp;</div><div>&nbsp;</div>]]>
   </description>
   <pubDate>Mon, 16 Jul 2012 18:36:01 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3544&amp;PID=14035#14035</guid>
  </item> 
 </channel>
</rss>