Skip to main content

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​
TypeNameDescription
IDbDataParameterparameterThe 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​
TypeNameDescription
TypedestinationTypeThe type to parse to

| | System.Object | value | The value from the database

|