<?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 : Instance Verification</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : Instance Verification</description>
  <pubDate>Thu, 11 Jun 2026 10:49:20 -700</pubDate>
  <lastBuildDate>Wed, 22 Aug 2007 07:33:20 -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=249</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>Instance Verification : Yes, the above snippet works well....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=249&amp;PID=960#960</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=123" rel="nofollow">owais,zahid</a><br /><strong>Subject:</strong> 249<br /><strong>Posted:</strong> 22-Aug-2007 at 7:33am<br /><br /><P>Yes, the above snippet works well. But we can do one more thing here. Suppose in a situation where you have many verifiers and you don't want all of them to be invoke. We can selectively invoke the verifiers that we need. By:</P><DIV>result = persistenceManager.VerifierEngine.Execute(code, EntityPropertyDescriptors.APBankCode.Code.PropertyPath);</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 22 Aug 2007 07:33:20 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=249&amp;PID=960#960</guid>
  </item> 
  <item>
   <title>Instance Verification : Thank you eileenv, got it working...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=249&amp;PID=713#713</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=69" rel="nofollow">Darren</a><br /><strong>Subject:</strong> 249<br /><strong>Posted:</strong> 18-Jul-2007 at 3:07am<br /><br /><P>Thank you eileenv,</P><DIV>got it working before you posted , but thanks anyway.</DIV><DIV>My code is very similar to your snippet you posted.</DIV><DIV>&nbsp;</DIV><DIV>Cheers</DIV>]]>
   </description>
   <pubDate>Wed, 18 Jul 2007 03:07:17 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=249&amp;PID=713#713</guid>
  </item> 
  <item>
   <title>Instance Verification : In your Saving event handler,...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=249&amp;PID=711#711</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=51" rel="nofollow">eileenv</a><br /><strong>Subject:</strong> 249<br /><strong>Posted:</strong> 17-Jul-2007 at 12:19pm<br /><br />In your <EM>Saving</EM> event handler, you can&nbsp;iterate through the list of entities and call instance verification on each entity. If errors are found you may want want to collect the error descriptions and throw an exception. <DIV></DIV><DIV>&nbsp;</DIV><DIV>For example:</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp; protected virtual void SavingHandler(object sender, EntitySavingEventArgs e) {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; VerifyEntities(e.Entities);<BR>&nbsp;&nbsp;&nbsp; }</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp; private void VerifyEntities(IList&lt;Entity&gt; pEntities) {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; foreach ( Entity anEntity in pEntities ) {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; VerifierResultCollection results;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; results = aPm.VerifierEngine.Execute(pEntity);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ( !results.AreOk ) {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // do something, e.g. get error descriptions and throw exception</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; }</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><span style="font-size:10px"><br /><br />Edited by eileenv - 17-Jul-2007 at 5:44pm</span>]]>
   </description>
   <pubDate>Tue, 17 Jul 2007 12:19:03 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=249&amp;PID=711#711</guid>
  </item> 
  <item>
   <title>Instance Verification : Just now i have implemeted custom...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=249&amp;PID=552#552</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=69" rel="nofollow">Darren</a><br /><strong>Subject:</strong> 249<br /><strong>Posted:</strong> 16-Jul-2007 at 9:07am<br /><br /><P>Just now i have implemeted custom property verfication into my developer classes.</P><DIV>For example i have implemented custom verifiers on the Username and Password, Forename , Surname and Age.</DIV><DIV>&nbsp;</DIV><DIV>This works fine when the user tries to leave the field blank and they get the error icon appearing to the right of the textbox.</DIV><DIV>&nbsp;</DIV><DIV>But when they add a new user, the fields are all blank at this point and they can save a blank record without verification firing.</DIV><DIV>&nbsp;</DIV><DIV>I know i have to add something&nbsp;into the save event to trigger the verification. The question is what do i add into that event.</DIV><DIV>&nbsp;</DIV><DIV>I have looked at the code from the tutorial , but i got lost in c# code.</DIV><DIV>&nbsp;</DIV><DIV>Any pointers would much appreciated.</DIV><DIV>&nbsp;</DIV><DIV>Thanks</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 16 Jul 2007 09:07:24 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=249&amp;PID=552#552</guid>
  </item> 
 </channel>
</rss>