﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Business Objects and Data Access (How do I?)  » Alternate values on NULL Get/Set</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 05:50:33 GMT</lastBuildDate><ttl>20</ttl><item><title>Alternate values on NULL Get/Set</title><link>http://forum.strataframe.net/FindPost12008.aspx</link><description>I have been playing with the settings in the BO Mapper for the NULL Value Options.&amp;nbsp; What I want to accomplish is this...&lt;BR&gt;&lt;BR&gt;1.&amp;nbsp; Get values with the replacement value applied if a null is in the db.&amp;nbsp; i.e. Get out a "" for a NULL string value.&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; I want to be able to control what values are going back into the database.&amp;nbsp; Sometimes a NULL means different things than a "" string value or a 0 decimal value.&amp;nbsp; Is there some way to control how it puts it back in, but always return it with the replacement value applied?</description><pubDate>Tue, 16 Oct 2007 09:18:09 GMT</pubDate><dc:creator>Andria Jensen</dc:creator></item><item><title>RE: Alternate values on NULL Get/Set</title><link>http://forum.strataframe.net/FindPost12022.aspx</link><description>1) The replacement value options are designed for exactly that... you can use String.Empty or "" for the replacement value.&lt;/P&gt;&lt;P&gt;2) There is an option for returning a replacement on null and setting null on the replacement.&amp;nbsp; If you use "" for the replacement and try to set that as the value, the property will set NULL back to the database.&amp;nbsp; However if you want to differentiate between NULL and "", then you'll most likely have to use the CurrentRow property on the business object to set null values back.&amp;nbsp; bo.CurrentRow("field") = DBNull.Value will do the trick and bypass the strong-typed property.</description><pubDate>Tue, 16 Oct 2007 09:18:09 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>