<?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 : Datatype Conversion</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Datatype Conversion</description>
  <pubDate>Mon, 13 Apr 2026 00:09:07 -700</pubDate>
  <lastBuildDate>Mon, 13 Feb 2012 08:59:12 -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=3260</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>Datatype Conversion :   Hi SandLink,Regarding your...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3260&amp;PID=12656#12656</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> 3260<br /><strong>Posted:</strong> 13-Feb-2012 at 8:59am<br /><br />Hi SandLink,<div>&nbsp;</div><div>Regarding your NUMBER(1,0) type the only way I could see the 'conversion' is to actually have a custom&nbsp;property (boolean) that would assign/retrieve (i.e. via property interceptor) the proper int value (after all the field is of int type even though it only takes 0s and 1s).</div><div>&nbsp;</div><div>As for empty strings, you can set ShouldTreatEmptyStringAsNull to false:</div><div>&nbsp;</div><div><em>myEM.VerifierEngine.DefaultVerifierOptions.ShouldTreatEmptyStringAsNull = false;</em></div><div>&nbsp;</div><div>Regards,</div><div>&nbsp;&nbsp; Silvio.</div>]]>
   </description>
   <pubDate>Mon, 13 Feb 2012 08:59:12 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3260&amp;PID=12656#12656</guid>
  </item> 
  <item>
   <title>Datatype Conversion :  I have a legacy DB running on...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3260&amp;PID=12648#12648</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1393" rel="nofollow">SandLink</a><br /><strong>Subject:</strong> 3260<br /><strong>Posted:</strong> 11-Feb-2012 at 10:06am<br /><br />I have a legacy DB running on Oracle which has a few specific internal data representations which need to be converted into more standard data types in my entities. To whit:<div></div>Booleans are represented as 0 or 1, which is a NUMBER1. The designer maps the values as Int16, and throws an exception when I want to use an Boolean.<div></div>Empty strings in Oracle are represented as single space strings, while an empty string '' is NULL.<div></div>What I need is to be able to convert from the DB representation to a CLR representation in the mapping layer, but I can't find any information as to any available handles for this.<div></div>Apart from costly workarounds like duplicating all my properties, are there any elegant solutions to the problem?]]>
   </description>
   <pubDate>Sat, 11 Feb 2012 10:06:11 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3260&amp;PID=12648#12648</guid>
  </item> 
 </channel>
</rss>