This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi, My entity contains a property that is an 'Object' in my class definition and in Oracle it is 'LONG RAW'. All the fields except for the object/LONG RAW field are bing pupulated properly, which always shows up as 'null'. How does LS handle the loading of LONG RAW fields in the background? If it's using the Oracle data reader, according to Oracle's documentation (http://download.oracle.com/docs/html/B14164_01/featData.htm#i1007197) LONG RAW fields are 'lazy loading' in the context of the data reader itself. If this is what is causing it to be null how can I make sure the property is populated? |
|
|
What happens if you change the property from Object to Blob? A LONG RAW will want to be materialised as a byte array, so that may be enough to fix it. We are using a data reader, but we use the GetValues() method rather than GetBytes(), so it may be that we need to make some internal tweaks to support this case. You could also use an interceptor to set the InitialLONGFetchSize on the OracleCommand. This would avoid lazy loading. However you would still need to have a Blob field rather than an Object field I think. For info about building an interceptor see http://www.mindscapehq.com/blog/index.php/2011/07/28/using-the-asp-net-mvc-mini-profiler-with-lightspeed/. |
|
|
Thanks, changing it to 'Blob' worked. |
|