Is this the null value "coming from" the database, or "going to" the
database?
From the code it looks like coming from since it is used in the
ResultProperty class.
For example if I have a nullable varchar field in the database and in an
instance of a class I would like this to be represented by an empty string.
My type handler vb code would look like this:
Public ReadOnly Property NullValue() As Object Implements
IBatisNet.DataMapper.TypeHandlers.ITypeHandlerCallback.NullValue
Get
Return ""
End Get
End Property
If I want null database fields to remain null, the code would look like the
following
Public ReadOnly Property NullValue() As Object Implements
IBatisNet.DataMapper.TypeHandlers.ITypeHandlerCallback.NullValue
Get
Return Nothing
End Get
End Property
Is this correct? There are no docs that I can find about this new
property. I know docs for this release are not completed yet. :)
Thanks for your time.
Mike