<?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 : Recursive validation</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : Recursive validation</description>
  <pubDate>Thu, 23 Apr 2026 10:04:27 -700</pubDate>
  <lastBuildDate>Fri, 27 Jun 2008 21:13:51 -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=854</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>Recursive validation : If you&amp;#039;re doing instance...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=854&amp;PID=3153#3153</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=34" rel="nofollow">jeffdoolittle</a><br /><strong>Subject:</strong> 854<br /><strong>Posted:</strong> 27-Jun-2008 at 9:13pm<br /><br />If you're doing instance level verification, you could set the related entity's DataRowState to modified, and then make sure you verify all "modified" entities in a Persistence.Saving event handler.<DIV>&nbsp;</DIV><DIV>--Jeff</DIV>]]>
   </description>
   <pubDate>Fri, 27 Jun 2008 21:13:51 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=854&amp;PID=3153#3153</guid>
  </item> 
  <item>
   <title>Recursive validation : The short answer is &#8220;no &#8230; there...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=854&amp;PID=3137#3137</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=23" rel="nofollow">davidklitzke</a><br /><strong>Subject:</strong> 854<br /><strong>Posted:</strong> 26-Jun-2008 at 1:35pm<br /><br /><P =Ms&#111;normal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">The short answer is “no … there is no recursive validation; no there is no CAB or Cabana magic to exploit (that I can think of).”<?: prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P><P =Ms&#111;normal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p>&nbsp;</o:p></SPAN><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Given this structure I would be tempted to extend the Customer object with Address and Country properties that reach across to the dependent objects … in essence, I’d flatten this out from the Customer object consumer’s perspective.&nbsp; I’m not sure if this is the right path … it’s dangerous if there are other routes to the address or if you allow people to modify Country. But, assuming this is ok, &nbsp;I’d add validations to those custom properties and you would bind to “aCustomer.Street” rather than “aCustomer.Address.Street”. <o:p></o:p></SPAN></P><P =Ms&#111;normal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p></o:p></SPAN></P><P =Ms&#111;normal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Of course you also have to manage this Aggregate … you have to make sure any change to the address is also a change to the parent customer (for concurrency purposes) and then save them together when you make a change in the address.</SPAN><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p>&nbsp;</o:p></SPAN></P><P =Ms&#111;normal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">I’m speaking really fast here and gliding over theory and details. <o:p></o:p></SPAN></P><P =Ms&#111;normal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">I would also reconsider if this kind of thing was happening EVERYWHERE. In that case, I’d want to look at a more generalized approach.<o:p></o:p></SPAN></P><P =Ms&#111;normal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p></o:p></SPAN></P><P =Ms&#111;normal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Anyway, this is a short peek into the matter and, if it shines adequate light on the path great; if not, we can refine.<o:p></o:p></SPAN></P><P =Ms&#111;normal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p>&nbsp;</o:p></SPAN></P>]]>
   </description>
   <pubDate>Thu, 26 Jun 2008 13:35:03 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=854&amp;PID=3137#3137</guid>
  </item> 
  <item>
   <title>Recursive validation : Good Afternoon  I was wondering...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=854&amp;PID=3123#3123</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=240" rel="nofollow">Jason</a><br /><strong>Subject:</strong> 854<br /><strong>Posted:</strong> 25-Jun-2008 at 7:42am<br /><br />Good Afternoon<DIV>&nbsp;</DIV><DIV>I was wondering if anyone would be able to help me with&nbsp;the following&nbsp;problem</DIV><DIV>&nbsp;</DIV><DIV>I am using the full version of Devforce v3.6.2.2 and VS2008 (c#)</DIV><DIV>&nbsp;</DIV><DIV>I have three entities mapped to a normalised database - Customer, Address and Country.</DIV><DIV>A 1:1 relationship between Customer and Address exists.</DIV><DIV>A 1:1 relationship between Address and Country exists.</DIV><DIV>&nbsp;</DIV><DIV>I'm implementing verification into a project which has been built around the ideablade CAB model.</DIV><DIV>&nbsp;</DIV><DIV>I am able to verify the Address and Country&nbsp;entities by creating a method within the Customer entity and hooking it up using a method which is decorated with the VerifierProvider attribute</DIV><DIV>&nbsp;</DIV><DIV>My question is whether it is possible to validate recursively so I can just put attributes on the relevant fields in the child entities and then just validate the parent entity? There is so much to the CAB project that I don't know if I'm missing something obvious?</DIV><DIV>&nbsp;</DIV><DIV>Thanks</DIV><DIV>Jason</DIV>]]>
   </description>
   <pubDate>Wed, 25 Jun 2008 07:42:51 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=854&amp;PID=3123#3123</guid>
  </item> 
 </channel>
</rss>