<?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 : Validate &quot;custom&quot; properties</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Validate &quot;custom&quot; properties</description>
  <pubDate>Sun, 12 Apr 2026 06:14:56 -700</pubDate>
  <lastBuildDate>Wed, 19 Oct 2011 13: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=3021</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>Validate &quot;custom&quot; properties :   Excellent! Working great. </title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3021&amp;PID=11870#11870</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1264" rel="nofollow">katit</a><br /><strong>Subject:</strong> 3021<br /><strong>Posted:</strong> 19-Oct-2011 at 1:13pm<br /><br />Excellent! Working great.]]>
   </description>
   <pubDate>Wed, 19 Oct 2011 13:13:51 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3021&amp;PID=11870#11870</guid>
  </item> 
  <item>
   <title>Validate &quot;custom&quot; properties :  Hi Ivan,The snippet above will...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3021&amp;PID=11865#11865</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=892" rel="nofollow">sbelini</a><br /><strong>Subject:</strong> 3021<br /><strong>Posted:</strong> 19-Oct-2011 at 11:19am<br /><br />Hi Ivan,<div><br></div><div>The snippet above will raise INotityPropertyChanged only.</div><div><br></div><div>For INotityDataErrorInfo, try: (in your Entity's partial class)</div><div><br></div><div><div><i>&nbsp; &nbsp; &#091;StringLengthVerifier(MaxValue = 20, MinValue = 6, IsRequired = true, ErrorMessage = "Password Required")&#093;</i></div><div><i><span ="apple-style-span"="">&nbsp; &nbsp; public string&nbsp;</span><span ="apple-style-span"="" style=": rgb251, 251, 253; ">PasswordEX&nbsp;</span><span ="apple-style-span"="">{</span></i></div><div><i>&nbsp; &nbsp; &nbsp; get {&nbsp;</i></div><div><i><span ="apple-style-span"="">&nbsp; &nbsp; &nbsp; &nbsp; return PropertyMetadata.</span><span ="apple-style-span"="" style=": rgb251, 251, 253; ">PasswordEX</span><span ="apple-style-span"="">.GetValue(this);</span></i></div><div><i>&nbsp; &nbsp; &nbsp; }</i></div><div><i>&nbsp; &nbsp; &nbsp; set {</i></div><div><i><span ="apple-style-span"="">&nbsp; &nbsp; &nbsp; &nbsp; PropertyMetadata.</span><span ="apple-style-span"="" style=": rgb251, 251, 253; ">PasswordEX</span><span ="apple-style-span"="">.SetValue(this, value);</span></i></div><div><i>&nbsp; &nbsp; &nbsp; }</i></div><div><i>&nbsp; &nbsp; }</i></div><div><i><br></i></div><div><i>&nbsp; &nbsp; public partial class PropertyMetadata {</i></div><div><i><span ="apple-style-span"="">&nbsp; &nbsp; &nbsp; public static readonly IbEm.DataEntityProperty&lt;User, string&gt;&nbsp;</span><span ="apple-style-span"="" style=": rgb251, 251, 253; ">PasswordEX&nbsp;</span><span ="apple-style-span"="">= new IbEm.DataEntityProperty&lt;User, string&gt;("</span><span ="apple-style-span"="" style=": rgb251, 251, 253; ">PasswordEX</span><span ="apple-style-span"="">", false, false, IbEm.ConcurrencyStrategy.None, false, null, false);</span></i></div><div><i>&nbsp; &nbsp; }</i></div></div><div><br></div><div>Regards,</div><div>&nbsp; &nbsp;Silvio.</div><span style="font-size:10px"><br /><br />Edited by sbelini - 19-Oct-2011 at 11:21am</span>]]>
   </description>
   <pubDate>Wed, 19 Oct 2011 11:19:26 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3021&amp;PID=11865#11865</guid>
  </item> 
  <item>
   <title>Validate &quot;custom&quot; properties :   Silvio,It doesn&amp;#039;t raise...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3021&amp;PID=11860#11860</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1264" rel="nofollow">katit</a><br /><strong>Subject:</strong> 3021<br /><strong>Posted:</strong> 18-Oct-2011 at 5:39pm<br /><br />Silvio,<div>&nbsp;</div><div>It doesn't raise INotifyDataErrorInfo..</div>]]>
   </description>
   <pubDate>Tue, 18 Oct 2011 17:39:15 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3021&amp;PID=11860#11860</guid>
  </item> 
  <item>
   <title>Validate &quot;custom&quot; properties : Hi Ivan,try:  public string PasswordEX...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3021&amp;PID=11859#11859</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=892" rel="nofollow">sbelini</a><br /><strong>Subject:</strong> 3021<br /><strong>Posted:</strong> 18-Oct-2011 at 5:34pm<br /><br />Hi Ivan,<div><br></div><div>try:</div><div><br></div><div><div>&nbsp; &nbsp; public string PasswordEX {</div><div><span ="Apple-style-span">&nbsp; &nbsp; &nbsp; get { return&nbsp;</span>passwordEX<span ="Apple-style-span">; }</span></div><div>&nbsp; &nbsp; &nbsp; set {</div><div><span ="Apple-style-span">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span>passwordEX&nbsp;<span ="Apple-style-span">= value;</span></div><div><span ="Apple-style-span">&nbsp; &nbsp; &nbsp; &nbsp; OnPropertyChanged(new PropertyChangedEventArgs("</span>PasswordEX<span ="Apple-style-span">"));</span></div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; }</div></div><div><br></div><div><br></div><div>Regards,&nbsp;</div><div>&nbsp; &nbsp;Silvio.</div>]]>
   </description>
   <pubDate>Tue, 18 Oct 2011 17:34:34 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3021&amp;PID=11859#11859</guid>
  </item> 
  <item>
   <title>Validate &quot;custom&quot; properties :   I&amp;#039;m trying to make my...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3021&amp;PID=11856#11856</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1264" rel="nofollow">katit</a><br /><strong>Subject:</strong> 3021<br /><strong>Posted:</strong> 18-Oct-2011 at 4:47pm<br /><br />I'm trying to make my partial class to play nicely with verification engine(see code below).<div>&nbsp;</div><div>I'm trying to create new property (PasswordEx) which works.</div><div>I need to add verifier to this property. Adding it using attribute. It works. Kind of..</div><div>&nbsp;</div><div>When whole entity validated - it works and I get this field warning, etc.</div><div>What I want is INotifyDataErrorInfo to work for this property so user see wrong entry right away...</div><div>&nbsp;</div><div>My guess is that I need to tell VerifierEngine to run verification on this property inside my setter but can't come up with syntax to do that. Or maybe I can do it some other way?</div><div>&nbsp;</div><div>Also, how would I raise INotifyPropertyChanged event from my partial class? Is there any built-in gluing in DevForce?</div><div><font size="2" face="C&#111;nsolas"></font>&nbsp;</div><div><font size="2" face="C&#111;nsolas">&#091;MetadataType(typeof(MEMUserMetadata))&#093;<br>&nbsp;&nbsp;&nbsp; public partial class User<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; private string passwordEx;</font></div><div><font size="2" face="C&#111;nsolas">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#091;StringLengthVerifier(MaxValue = 20, MinValue = 6, IsRequired = true, ErrorMessage = "Password Required")&#093;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public string PasswordEx<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; get<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return this.passwordEx;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</font></div><div><font size="2" face="C&#111;nsolas">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; set<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; this.passwordEx = value;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</font></div><div><font size="2" face="C&#111;nsolas">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public string PasswordAgainEx { get; set; }</font></div><div><font size="2" face="C&#111;nsolas">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; }</div><p></font><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas">&nbsp;<p>&nbsp;</p></font></font>]]>
   </description>
   <pubDate>Tue, 18 Oct 2011 16:47:52 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3021&amp;PID=11856#11856</guid>
  </item> 
 </channel>
</rss>