<?xml version="1.0"?>
<rss version="2.0">
<channel>
<title>CodeTrigger - General - Oracle Number(31) column used for ID column - Messages</title>
<link>https://www.codetrigger.com/forum/topic18-oracle-number-column-used-for-id-column.aspx</link>
<description>CodeTrigger - General - Oracle Number(31) column used for ID column - Messages</description>
<language>en-us</language>
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
<generator>Jitbit AspNetForum</generator>
<pubDate>Mon, 04 Dec 2017 13:48:37 GMT</pubDate>
<lastBuildDate>Mon, 04 Dec 2017 13:48:37 GMT</lastBuildDate>
<item>
<link>https://www.codetrigger.com/forum/topic18-oracle-number-column-used-for-id-column.aspx</link>
<title>Message from migrator</title>
<description><![CDATA[UPDATE<br/>Release 4.8.6.2 (June 2016) <br/><span style="color:#696969">Added Support for non native Boolean field representation for Oracle - using </span><span style="color:#0033ff">Number(1)</span><span style="color:#696969"> convention</span><br/>Added support for Identity Fields in Oracle 12+<br/><i>edited by migrator on 12/4/2017</i>]]></description>
<pubDate>Mon, 04 Dec 2017 13:48:37 GMT</pubDate>
</item>
<item>
<link>https://www.codetrigger.com/forum/topic18-oracle-number-column-used-for-id-column.aspx</link>
<title>Message from migrator</title>
<description><![CDATA[<span style="font-family:Tahoma, "Sans Serif", Arial">If you look in the generated Data Access Base Class: XXXXBaseData.Cs, you will see a section called BoxRowValue. This is where some special processing is placed to handle Number(1).  The function is designed for such cases, so I think the best approach might be to look at that function and make some changes in there to handle Number(31). Might be best to just write a safe convert to decimal in that function for the Number(31) case. Please let me know how you get on as we would be very interested in this UseCase.</span><br/><br/><br/><span style="font-family:Tahoma, "Sans Serif", Arial">#region oracle parameter helpers</span><br/><span style="font-family:Tahoma, "Sans Serif", Arial">                protected static object BoxRowValue(object value, string entityName, string fieldName)</span><br/><span style="font-family:Tahoma, "Sans Serif", Arial">                {</span><br/><span style="font-family:Tahoma, "Sans Serif", Arial">                        //write any necessary conversion code</span><br/><span style="font-family:Tahoma, "Sans Serif", Arial">                        if(entityName == "sometablename" && fieldName == anumber31fieldName) return mySafeConvertFunction(value);</span><br/><br/><span style="font-family:Tahoma, "Sans Serif", Arial">                        //for eg change up from NUMBER(1) to boolean if required</span><br/><span style="font-family:Tahoma, "Sans Serif", Arial">                        return (object)(value != null ? ((short)value != 0) : default(bool));</span><br/><span style="font-family:Tahoma, "Sans Serif", Arial">                }</span><br/><br/><span style="font-family:Tahoma, "Sans Serif", Arial">protected virtual object UnboxOracleParam(OracleParameter oracleParam, string entityName)</span><br/><span style="font-family:Tahoma, "Sans Serif", Arial">                {</span><br/><span style="font-family:Tahoma, "Sans Serif", Arial">...</span><br/><span style="font-family:Tahoma, "Sans Serif", Arial">...</span><br/><span style="font-family:Tahoma, "Sans Serif", Arial">}</span>]]></description>
<pubDate>Mon, 04 Dec 2017 13:44:55 GMT</pubDate>
</item>
<item>
<link>https://www.codetrigger.com/forum/topic18-oracle-number-column-used-for-id-column.aspx</link>
<title>Message from migrator</title>
<description><![CDATA[<span style="font-family:Tahoma, "Sans Serif", Arial">PeopleSoft tables contain Number(31) columns that it uses for “ID” type columns. CodeTrigger treats these as .Net decimal types which causes data overflow issues in the business layer. One of the approaches we have used with these colums is to apply Oracle to_char functions and treat them as strings. Can something like this be done with CodeTrigger?</span>]]></description>
<pubDate>Mon, 04 Dec 2017 13:44:27 GMT</pubDate>
</item>
</channel>
</rss>
