Converts a string obtained from the database into a boolean value to be loaded into an entity field.

Namespace:  Mindscape.LightSpeed.FieldConverters
Assembly:  Mindscape.LightSpeed (in Mindscape.LightSpeed.dll)
Version: 4.0.0.0 (4.0.0.0)

Syntax

C#
protected override bool ConvertFromDatabase(
	string databaseValue
)
Visual Basic (Declaration)
Protected Overrides Function ConvertFromDatabase ( _
	databaseValue As String _
) As Boolean

Parameters

databaseValue
Type: System..::.String
The string obtained from the database.

Return Value

The boolean to which to set the entity field.

Remarks

If the value is neither 'Y' nor 'N', no exception is thrown: a value of false is returned.

See Also