SqlMapper.ITypeHandler
Implement this interface to perform custom type-based parameter handling and value parsing
Assembly: ServiceStack.OrmLite.dll
View Source
Declaration
public interface ITypeHandler
Methods
SetValue(IDbDataParameter, Object)
Assign the value of a parameter before a command executes
View Source
Declaration
void SetValue(IDbDataParameter parameter, object value)
Parameters
Type | Name | Description |
---|---|---|
IDbDataParameter | parameter | The parameter to configure |
|
| System.Object
| value | Parameter value
|
Parse(Type, Object)
Parse a database value back to a typed value
View Source
Declaration
object Parse(Type destinationType, object value)
Returns
System.Object
: The typed value
Parameters
Type | Name | Description |
---|---|---|
Type | destinationType | The type to parse to |
|
| System.Object
| value | The value from the database
|