Provides conversion between a specific data type and another.
Each will support a value that is requested to be converted
and the dataType lookupKey that will be the resulting value.
Provides a way to include non-standard types in comparison Conditions
by taking the value in its non-standard type form and returning
another value that is either a primitive type or Date that already
has support by Conditions.
Consider these cases:
A TimeSpan class represents a duration in days, hours, minutes and seconds.
Use a Converter to return the total number of seconds.
A RelativeDate class represents a Date calculated offset from Today
by a number of days, weeks, months, and years.
Use a Converter to return a Date object with the realized date.
You can have several converters for the same non-standard type.
The Data Type Lookup key supplied on the ValueHost can be used to pick a specific one.
Register your implementation with ValidationServices.dataTypeConverterService.
Provides conversion between a specific data type and another. Each will support a value that is requested to be converted and the dataType lookupKey that will be the resulting value.
Provides a way to include non-standard types in comparison Conditions by taking the value in its non-standard type form and returning another value that is either a primitive type or Date that already has support by Conditions.
Consider these cases:
You can have several converters for the same non-standard type. The Data Type Lookup key supplied on the ValueHost can be used to pick a specific one. Register your implementation with ValidationServices.dataTypeConverterService.