C# Class Habanero.Base.DataMappers.ByteArrayDataMapper

data mapper that is used for reading and writing byte[] (Byte array) from a database
Inheritance: Habanero.Base.DataMappers.DataMapper
Show file Open project: Chillisoft/habanero Class Usage Examples

Public Methods

Method Description
ConvertValueToString ( object value ) : string

Converts the value of a valid type for this property definition to a string relevant. A null value will be oonverted to a zero length string.

TryParsePropValue ( object valueToParse, object &returnValue ) : bool

This method provides the functionality to convert any object to the appropriate type for this mapper. The default behaviour only handles null values, empty strings and DBNull.Value and parses all three to null. This method should be overridden in subtypes to parse values to the type you want.

Method Details

ConvertValueToString() public method

Converts the value of a valid type for this property definition to a string relevant. A null value will be oonverted to a zero length string.
public ConvertValueToString ( object value ) : string
value object The value to be converted
return string

TryParsePropValue() public method

This method provides the functionality to convert any object to the appropriate type for this mapper. The default behaviour only handles null values, empty strings and DBNull.Value and parses all three to null. This method should be overridden in subtypes to parse values to the type you want.
public TryParsePropValue ( object valueToParse, object &returnValue ) : bool
valueToParse object The value to be attempted to parse
returnValue object the parsed value, if parsing was successful
return bool