<?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 : Customized StringLengthVerifier</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Customized StringLengthVerifier</description>
  <pubDate>Thu, 14 May 2026 18:51:23 -700</pubDate>
  <lastBuildDate>Tue, 22 Feb 2011 09:25:57 -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=2517</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>Customized StringLengthVerifier : Hi smi-mark, You are absolutely...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2517&amp;PID=10028#10028</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> 2517<br /><strong>Posted:</strong> 22-Feb-2011 at 9:25am<br /><br /><P>Hi smi-mark,</P><DIV>You are absolutely right. The buddy class will be more usefull if one is trying to override the verifier of one specific entity's property. In the situation where you want to override a verifier "globally", your approach is better suited.</DIV><DIV>&nbsp;</DIV><DIV>I guess I was so excited to share this new feature that ended up neglecting this detail.</DIV><DIV>&nbsp;</DIV><DIV>Thanks for bringing it up.</DIV><DIV>&nbsp;</DIV><DIV>Silvio.</DIV>]]>
   </description>
   <pubDate>Tue, 22 Feb 2011 09:25:57 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2517&amp;PID=10028#10028</guid>
  </item> 
  <item>
   <title>Customized StringLengthVerifier : If he is trying to replace every...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2517&amp;PID=10024#10024</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=449" rel="nofollow">smi-mark</a><br /><strong>Subject:</strong> 2517<br /><strong>Posted:</strong> 22-Feb-2011 at 6:58am<br /><br />If he is trying to replace every string verifier in the edmx, would the template not be the easiest approach? if it was only a few properties then yes the buddy approach would be more practical.]]>
   </description>
   <pubDate>Tue, 22 Feb 2011 06:58:41 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2517&amp;PID=10024#10024</guid>
  </item> 
  <item>
   <title>Customized StringLengthVerifier : Hi Jignesh and smi-mark,  Now...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2517&amp;PID=10021#10021</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> 2517<br /><strong>Posted:</strong> 22-Feb-2011 at 1:09am<br /><br />Hi Jignesh and smi-mark,&nbsp;<DIV>&nbsp;</DIV><DIV>Now you can also use a "buddy" class&nbsp;and create a verifier to override the&nbsp;verifier in the generated code. This way you don't need to customize the designer&nbsp;template.</DIV><DIV>&nbsp;</DIV><DIV>The "buddy" class is a new feature available in DevForce 6.0.8 and you can&nbsp;find more information about it in our <a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/Adding-Validati&#111;n-Attributes-to-Generated-Properties" target="_blank">DevForce resource Center</A>.</DIV><DIV>&nbsp;</DIV><DIV>Silvio.</DIV>]]>
   </description>
   <pubDate>Tue, 22 Feb 2011 01:09:34 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2517&amp;PID=10021#10021</guid>
  </item> 
  <item>
   <title>Customized StringLengthVerifier :  Try this, go into your Model.IB.Designer.cs...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2517&amp;PID=9995#9995</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=449" rel="nofollow">smi-mark</a><br /><strong>Subject:</strong> 2517<br /><strong>Posted:</strong> 18-Feb-2011 at 3:57pm<br /><br />Try this, go into your Model.IB.Designer.cs file and replace it with this<br><br><pre style="font-family: c&#111;nsolas;">&lt;#@&nbsp;template&nbsp;&nbsp;language="C#"&nbsp;debug="true"&nbsp;hostSpecific="true"&nbsp;#&gt;<br>&lt;#@&nbsp;output&nbsp;extension=".ReadMe"&nbsp;#&gt;<br>&lt;#@&nbsp;Assembly&nbsp;Name="System.Core.dll"&nbsp;#&gt;<br>&lt;#@&nbsp;Assembly&nbsp;Name="IdeaBlade.VisualStudio.DTE.dll"&nbsp;#&gt;<br>&lt;#@&nbsp;Assembly&nbsp;Name="IdeaBlade.VisualStudio.OM.CodeGenerator.dll"&nbsp;#&gt;<br>&lt;#@&nbsp;Assembly&nbsp;Name="IdeaBlade.EntityModel.Edm.Metadata.dll"&nbsp;#&gt;<br>&lt;#@&nbsp;import&nbsp;namespace="System"&nbsp;#&gt;<br>&lt;#@&nbsp;import&nbsp;namespace="System.Reflection"&nbsp;#&gt;<br>&lt;#@&nbsp;import&nbsp;namespace="IdeaBlade.VisualStudio.DTE"&nbsp;#&gt;<br>&lt;#@&nbsp;import&nbsp;namespace="IdeaBlade.VisualStudio.OM.CodeGenerator"&nbsp;#&gt;<br>&lt;#@&nbsp;import&nbsp;namespace="IdeaBlade.EntityModel.Edm.Metadata"&nbsp;#&gt;<br>&lt;#<br>	//&nbsp;Source&nbsp;for&nbsp;this&nbsp;file&nbsp;located&nbsp;at:&nbsp;C:\Users\Mark\AppData\Local\Microsoft\VisualStudio\10.0\Extensions\IdeaBlade,&nbsp;Inc\IdeaBlade&nbsp;OM&nbsp;Designer&nbsp;Extension\6.0.8.1\DomainModelTemplate.tt<br>	// <font color="#ff0000"><i><b>YourEdmxName</b></i></font>.edmx&nbsp;&nbsp;&lt;---&nbsp;This&nbsp;is&nbsp;needed&nbsp;so&nbsp;that&nbsp;"Transform&nbsp;Related&nbsp;Text&nbsp;Templates&nbsp;On&nbsp;Save"&nbsp;works&nbsp;correctly.<br>	var&nbsp;template&nbsp;=&nbsp;new&nbsp;NewTemplate(this);<br>	template.Generate();<br>#&gt;<br>&lt;#+&nbsp;<br>public&nbsp;class&nbsp;NewTemplate&nbsp;:&nbsp;DomainModelTemplate<br>&nbsp;&nbsp;&nbsp;&nbsp;{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;NewTemplate(Microsoft.VisualStudio.TextTemplating.TextTransformation&nbsp;textTransformation)&nbsp;:&nbsp;base(textTransformation)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br> <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;protected&nbsp;override&nbsp;void&nbsp;WriteAttribute(string&nbsp;attribute,&nbsp;bool&nbsp;isInCSharpFormat&nbsp;=&nbsp;true)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;newAttribute&nbsp;=&nbsp;attribute.Replace("IbVal.StringLengthVerifier",&nbsp;"MyStringLengthVerifier");<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;base.WriteAttribute(newAttribute,&nbsp;isInCSharpFormat);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br> <br>&nbsp;&nbsp;&nbsp;&nbsp;}<br>#&gt;<br><br>It is very important that you replace "YourEdmxName" with the proper name<br></pre><br><span style="font-size:10px"><br /><br />Edited by smi-mark - 18-Feb-2011 at 3:59pm</span>]]>
   </description>
   <pubDate>Fri, 18 Feb 2011 15:57:26 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2517&amp;PID=9995#9995</guid>
  </item> 
  <item>
   <title>Customized StringLengthVerifier : Hi ,      By default , Ideablade...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2517&amp;PID=9992#9992</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=957" rel="nofollow">hijaggu</a><br /><strong>Subject:</strong> 2517<br /><strong>Posted:</strong> 18-Feb-2011 at 3:30pm<br /><br /><p ="Ms&#111;normal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:  normal;:white"><span style="font-size:9.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;  mso-fareast-font-family:&quot;Times New Roman&quot;;mso-bidi-font-family:&quot;Times New Roman&quot;;  color:black">Hi ,<o:p></o:p></span></p><p ="Ms&#111;normal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:  normal;:white"><span style="font-size:9.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;  mso-fareast-font-family:&quot;Times New Roman&quot;;mso-bidi-font-family:&quot;Times New Roman&quot;;  color:black"><o:p>&nbsp;</o:p></span></p><p ="Ms&#111;normal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:  normal;:white"><span style="font-size:9.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;  mso-fareast-font-family:&quot;Times New Roman&quot;;mso-bidi-font-family:&quot;Times New Roman&quot;;  color:black"><o:p>&nbsp;</o:p></span></p><p ="Ms&#111;normal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:  normal;:white"><span style="font-size:9.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;  mso-fareast-font-family:&quot;Times New Roman&quot;;mso-bidi-font-family:&quot;Times New Roman&quot;;  color:black">By default , Ideablade uses&nbsp;</span><span style="font-size:  9.0pt;mso-bidi-font-size:11.0pt;font-family:C&#111;nsolas;mso-fareast-font-family:  &quot;Times New Roman&quot;;color:#2B91AF">StringLengthVerifier </span><span style="font-size:9.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;mso-fareast-font-family:  &quot;Times New Roman&quot;;mso-bidi-font-family:&quot;Times New Roman&quot;;color:black">in autogenerated code for entity model like below , <o:p></o:p></span></p><p ="Ms&#111;normal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:  normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;  :white"><span style="font-size:10.0pt;font-family:C&#111;nsolas;  mso-fareast-font-family:&quot;Times New Roman&quot;;color:black"><o:p>&nbsp;</o:p></span></p><p ="Ms&#111;normal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:  normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;  :white"><span style="font-size:10.0pt;font-family:C&#111;nsolas;  mso-fareast-font-family:&quot;Times New Roman&quot;;color:black">&nbsp;</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;  color:gray">///</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;  mso-fareast-font-family:&quot;Times New Roman&quot;;color:green">&nbsp;</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;  color:gray">&lt;summary&gt;</span><span style="font-size:10.0pt;font-family:  C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;color:green">Gets&nbsp;or&nbsp;sets&nbsp;the&nbsp;Address2.&nbsp;</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;  color:gray">&lt;/summary&gt;</span><span style="font-size:10.0pt;font-family:  C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;color:black"><br>&nbsp;&nbsp;&nbsp;&nbsp;&#091;</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;  mso-fareast-font-family:&quot;Times New Roman&quot;;color:#2B91AF">Bindable</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;  color:black">(</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;  mso-fareast-font-family:&quot;Times New Roman&quot;;color:blue">true</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;  color:black">,&nbsp;</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;  mso-fareast-font-family:&quot;Times New Roman&quot;;color:#2B91AF">BindingDirection</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;  color:black">.TwoWay)&#093;<br>&nbsp;&nbsp;&nbsp;&nbsp;&#091;</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;  mso-fareast-font-family:&quot;Times New Roman&quot;;color:#2B91AF">Editable</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;  color:black">(</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;  mso-fareast-font-family:&quot;Times New Roman&quot;;color:blue">true</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;  color:black">)&#093;<br>&nbsp;&nbsp;&nbsp;&nbsp;&#091;</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;  mso-fareast-font-family:&quot;Times New Roman&quot;;color:#2B91AF">Display</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;  color:black">(Name=</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;  mso-fareast-font-family:&quot;Times New Roman&quot;;color:#A31515">"Address2"</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;  color:black">,&nbsp;AutoGenerateField=</span><span style="font-size:10.0pt;  font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;color:blue">true</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;  color:black">)&#093;<br>&nbsp;&nbsp;&nbsp;&nbsp;&#091;IbVal.</span><span style="font-size:10.0pt;font-family:  C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;color:#2B91AF">StringLengthVerifier</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;  color:black">(MaxValue=50,&nbsp;IsRequired=</span><span style="font-size:10.0pt;  font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;color:blue">true</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;  color:black">,&nbsp;ErrorMessageResourceName=</span><span style="font-size:  10.0pt;font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;  color:#A31515">"Doctor_Address2"</span><span style="font-size:10.0pt;  font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;color:black">)&#093;<br>&nbsp;&nbsp;&nbsp;&nbsp;&#091;</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;  mso-fareast-font-family:&quot;Times New Roman&quot;;color:#2B91AF">DataMember</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;  color:black">&#093;<br>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;  mso-fareast-font-family:&quot;Times New Roman&quot;;color:blue">public</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;  color:black">&nbsp;</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;  mso-fareast-font-family:&quot;Times New Roman&quot;;color:blue">string</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;  color:black">&nbsp;Address2&nbsp;{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size:10.0pt;  font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;color:blue">get</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;  color:black">&nbsp;{&nbsp;</span><span style="font-size:10.0pt;font-family:  C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;color:blue">return</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;  color:black">&nbsp;</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;  mso-fareast-font-family:&quot;Times New Roman&quot;;color:#2B91AF">PropertyMetadata</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;  color:black">.Address2.GetValue(</span><span style="font-size:10.0pt;  font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;color:blue">this</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;  color:black">);&nbsp;}<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size:10.0pt;  font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;color:blue">set</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;  color:black">&nbsp;{&nbsp;</span><span style="font-size:10.0pt;font-family:  C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;color:#2B91AF">PropertyMetadata</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;  color:black">.Address2.SetValue(</span><span style="font-size:10.0pt;  font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;color:blue">this</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;  color:black">,&nbsp;</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;  mso-fareast-font-family:&quot;Times New Roman&quot;;color:blue">value</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;  color:black">);&nbsp;}<br>&nbsp;&nbsp;&nbsp;&nbsp;}<br></span><span style="font-size:10.0pt;font-family:C&#111;nsolas;mso-fareast-font-family:  &quot;Times New Roman&quot;;color:blue">&nbsp;&nbsp;&nbsp;&nbsp;#endregion</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;  color:black">&nbsp;Address2&nbsp;property<o:p></o:p></span></p><p ="Ms&#111;normal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:  normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;  :white"><span style="font-size:10.0pt;font-family:C&#111;nsolas;  mso-fareast-font-family:&quot;Times New Roman&quot;;color:black"><span style="mso-spacerun:yes">&nbsp;</span><o:p></o:p></span></p><p ="Ms&#111;normal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:  normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;  :white"><span style="font-size:9.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;  mso-fareast-font-family:&quot;Times New Roman&quot;;mso-bidi-font-family:&quot;Times New Roman&quot;;  color:black"><span style="mso-spacerun:yes">&nbsp;</span>Is there a way to supply myown</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;mso-fareast-font-family:  &quot;Times New Roman&quot;;color:#2B91AF"> </span><b><span style="font-size:10.0pt;  font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;color:red">MyStringLengthVerifier</span></b><span style="font-size:9.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;  mso-fareast-font-family:&quot;Times New Roman&quot;;mso-bidi-font-family:&quot;Times New Roman&quot;;  color:black">so that it generates the code like this. <o:p></o:p></span></p><p ="Ms&#111;normal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:  normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;  :white"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;  mso-fareast-font-family:&quot;Times New Roman&quot;;mso-bidi-font-family:&quot;Courier New&quot;;  color:black"><o:p>&nbsp;</o:p></span></p><p ="Ms&#111;normal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:  normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;  :white"><span style="font-size:10.0pt;font-family:C&#111;nsolas;  mso-fareast-font-family:&quot;Times New Roman&quot;;color:black">&nbsp;</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;  color:gray">///</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;  mso-fareast-font-family:&quot;Times New Roman&quot;;color:green">&nbsp;</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;  color:gray">&lt;summary&gt;</span><span style="font-size:10.0pt;font-family:  C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;color:green">Gets&nbsp;or&nbsp;sets&nbsp;the&nbsp;Address2.&nbsp;</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;  color:gray">&lt;/summary&gt;</span><span style="font-size:10.0pt;font-family:  C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;color:black"><br>&nbsp;&nbsp;&nbsp;&nbsp;&#091;</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;  mso-fareast-font-family:&quot;Times New Roman&quot;;color:#2B91AF">Bindable</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;  color:black">(</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;  mso-fareast-font-family:&quot;Times New Roman&quot;;color:blue">true</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;  color:black">,&nbsp;</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;  mso-fareast-font-family:&quot;Times New Roman&quot;;color:#2B91AF">BindingDirection</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;  color:black">.TwoWay)&#093;<br>&nbsp;&nbsp;&nbsp;&nbsp;&#091;</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;  mso-fareast-font-family:&quot;Times New Roman&quot;;color:#2B91AF">Editable</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;  color:black">(</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;  mso-fareast-font-family:&quot;Times New Roman&quot;;color:blue">true</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;  color:black">)&#093;<br>&nbsp;&nbsp;&nbsp;&nbsp;&#091;</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;  mso-fareast-font-family:&quot;Times New Roman&quot;;color:#2B91AF">Display</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;  color:black">(Name=</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;  mso-fareast-font-family:&quot;Times New Roman&quot;;color:#A31515">"Address2"</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;  color:black">,&nbsp;AutoGenerateField=</span><span style="font-size:10.0pt;  font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;color:blue">true</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;  color:black">)&#093;<br>&nbsp;&nbsp;&nbsp;&nbsp;&#091;</span><b><span style="font-size:10.0pt;font-family:  C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;color:red">MyStringLengthVerifier</span></b><span style="font-size:10.0pt;font-family:C&#111;nsolas;mso-fareast-font-family:  &quot;Times New Roman&quot;;color:black">(MaxValue=50,&nbsp;IsRequired=</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;  color:blue">true</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;  mso-fareast-font-family:&quot;Times New Roman&quot;;color:black">,&nbsp;ErrorMessageResourceName=</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;  color:#A31515">"Doctor_Address2"</span><span style="font-size:10.0pt;  font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;color:black">)&#093;<br>&nbsp;&nbsp;&nbsp;&nbsp;&#091;</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;  mso-fareast-font-family:&quot;Times New Roman&quot;;color:#2B91AF">DataMember</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;  color:black">&#093;<br>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;  mso-fareast-font-family:&quot;Times New Roman&quot;;color:blue">public</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;  color:black">&nbsp;</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;  mso-fareast-font-family:&quot;Times New Roman&quot;;color:blue">string</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;  color:black">&nbsp;Address2&nbsp;{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size:10.0pt;  font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;color:blue">get</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;  color:black">&nbsp;{&nbsp;</span><span style="font-size:10.0pt;font-family:  C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;color:blue">return</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;  color:black">&nbsp;</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;  mso-fareast-font-family:&quot;Times New Roman&quot;;color:#2B91AF">PropertyMetadata</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;  color:black">.Address2.GetValue(</span><span style="font-size:10.0pt;  font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;color:blue">this</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;  color:black">);&nbsp;}<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size:10.0pt;  font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;color:blue">set</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;  color:black">&nbsp;{&nbsp;</span><span style="font-size:10.0pt;font-family:  C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;color:#2B91AF">PropertyMetadata</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;  color:black">.Address2.SetValue(</span><span style="font-size:10.0pt;  font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;color:blue">this</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;  color:black">,&nbsp;</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;  mso-fareast-font-family:&quot;Times New Roman&quot;;color:blue">value</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;  color:black">);&nbsp;}<br>&nbsp;&nbsp;&nbsp;&nbsp;}<br></span><span style="font-size:10.0pt;font-family:C&#111;nsolas;mso-fareast-font-family:  &quot;Times New Roman&quot;;color:blue">&nbsp;&nbsp;&nbsp;&nbsp;#endregion</span><span style="font-size:10.0pt;font-family:C&#111;nsolas;mso-fareast-font-family:&quot;Times New Roman&quot;;  color:black">&nbsp;Address2&nbsp;property<o:p></o:p></span></p><p ="Ms&#111;normal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:  normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;  :white"><span style="font-size:10.0pt;font-family:C&#111;nsolas;  mso-fareast-font-family:&quot;Times New Roman&quot;;color:black"><o:p>&nbsp;</o:p></span></p><p ="Ms&#111;normal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:  normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;  :white"><span style="font-size:10.0pt;font-family:C&#111;nsolas;  mso-fareast-font-family:&quot;Times New Roman&quot;;color:black"><o:p>&nbsp;</o:p></span></p><p ="Ms&#111;normal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:  normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;  :white"><span style="font-size:10.0pt;font-family:C&#111;nsolas;  mso-fareast-font-family:&quot;Times New Roman&quot;;color:black"><o:p>&nbsp;</o:p></span></p><p ="Ms&#111;normal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:  normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;  :white"><span style="font-size:9.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;  mso-fareast-font-family:&quot;Times New Roman&quot;;mso-bidi-font-family:&quot;Times New Roman&quot;;  color:black"><span style="mso-tab-count:1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>We wouldlike&nbsp;to handle IsRequired property differently.<span style="mso-spacerun:yes">&nbsp;&nbsp; </span>Currently if string column in database tableis&nbsp;set to NOT NULL , Ideablade turns IsRequired = true and doesn't allowto assign empty string like </span><b style="mso-bidi-font-weight:normal"><span style="mso-bidi-font-size:9.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;mso-fareast-font-family:  &quot;Times New Roman&quot;;mso-bidi-font-family:&quot;Times New Roman&quot;;color:black">'’</span></b><span style="font-size:9.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;mso-fareast-font-family:  &quot;Times New Roman&quot;;mso-bidi-font-family:&quot;Times New Roman&quot;;color:black"><span style="mso-spacerun:yes">&nbsp; </span><span style="mso-spacerun:yes">&nbsp;</span>which&nbsp;isvalid value for NOT NULL fields in database.<o:p></o:p></span></p><p ="Ms&#111;normal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:  normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;  :white"><span style="font-size:9.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;  mso-fareast-font-family:&quot;Times New Roman&quot;;mso-bidi-font-family:&quot;Times New Roman&quot;;  color:black"><o:p>&nbsp;</o:p></span></p><p ="Ms&#111;normal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:  normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;  :white"><span style="font-size:9.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;  mso-fareast-font-family:&quot;Times New Roman&quot;;mso-bidi-font-family:&quot;Times New Roman&quot;;  color:black"><span style="mso-tab-count:1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>So in abovecase Address2 can be NOT NULL in database table and can still accept emptystring </span><b style="mso-bidi-font-weight:normal"><span style="mso-bidi-font-size:  9.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;mso-fareast-font-family:&quot;Times New Roman&quot;;  mso-bidi-font-family:&quot;Times New Roman&quot;;color:black">''</span></b><span style="font-size:9.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;mso-fareast-font-family:  &quot;Times New Roman&quot;;mso-bidi-font-family:&quot;Times New Roman&quot;;color:black"> without <span style="mso-spacerun:yes">&nbsp;</span>triggering validation. <o:p></o:p></span></p><p ="Ms&#111;normal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:  normal;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;  :white"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;  mso-fareast-font-family:&quot;Times New Roman&quot;;mso-bidi-font-family:&quot;Courier New&quot;;  color:black"><o:p>&nbsp;</o:p></span></p><p ="Ms&#111;normal" style="margin-bottom:.75pt;line-height:normal;tab-stops:  45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;  :white"><span style="font-size:10.0pt;font-family:C&#111;nsolas;  mso-fareast-font-family:&quot;Times New Roman&quot;;color:#2B91AF"><span style="mso-spacerun:yes">&nbsp;</span>- Jignesh Suthar </span><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;mso-fareast-font-family:  &quot;Times New Roman&quot;;mso-bidi-font-family:&quot;Courier New&quot;;color:black"><o:p></o:p></span></p><p ="Ms&#111;normal"><o:p>&nbsp;</o:p></p>]]>
   </description>
   <pubDate>Fri, 18 Feb 2011 15:30:21 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2517&amp;PID=9992#9992</guid>
  </item> 
 </channel>
</rss>