Return Alternate on Null/Set Null on Alternate (reference type)
NULL Replacement Value: ""
The problem is when I clear the field value on the form's control and save, the BO is writing an empty string back to the database instead of NULL.
However, when I modify your BO code by changing [If value IsNot "" Then] to
[If value.Length > 0 Then] (see modified code below), the logic works and the BO writes the NULL value back to the database.
What is going on here?
<Browsable(
BusinessFieldDisplayInEditor(), _
Description(
DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)> _
loValue =