iBATIS.NET Class Library DataMapper V1.6.1, DataAccess V1.9.1

ITypeHandlerCallback Members

ITypeHandlerCallback overview

Public Instance Properties

NullValue The null value for this type

Public Instance Methods

GetResult Performs processing on a value before after it has been retrieved from a IDataReader.
SetParameter Performs processing on a value before it is used to set the parameter of a IDbCommand.
ValueOf Casts the string representation of a value into a type recognized by this type handler. This method is used to translate nullValue values into types that can be appropriately compared. If your custom type handler cannot support nullValues, or if there is no reasonable string representation for this type (e.g. File type), you can simply return the String representation as it was passed in. It is not recommended to return null, unless null was passed in.

See Also

ITypeHandlerCallback Interface | IBatisNet.DataMapper.TypeHandlers Namespace