Skip to main content

CustomPropertyTypeMap

Implements custom property mapping by user provided criteria (usually presence of some custom attribute with column to member mapping)

Assembly: ServiceStack.OrmLite.dll​
View Source​
Declaration
public sealed class CustomPropertyTypeMap : object, SqlMapper.ITypeMap

Methods​

FindConstructor(String[], Type[])​

Always returns default constructor

View Source​
Declaration
public ConstructorInfo FindConstructor(string[] names, Type[] types)
Returns​

ConstructorInfo: Default constructor

Parameters​
TypeNameDescription
System.String[]namesDataReader column names

| | Type[] | types | DataReader column types

|

FindExplicitConstructor()​

Always returns null

View Source​
Declaration
public ConstructorInfo FindExplicitConstructor()
Returns​

ConstructorInfo

GetConstructorParameter(ConstructorInfo, String)​

Not implemented as far as default constructor used for all cases

View Source​
Declaration
public SqlMapper.IMemberMap GetConstructorParameter(ConstructorInfo constructor, string columnName)
Returns​

ServiceStack.OrmLite.Dapper.SqlMapper.IMemberMap

Parameters​
TypeName
ConstructorInfoconstructor
System.StringcolumnName

GetMember(String)​

Returns property based on selector strategy

View Source​
Declaration
public SqlMapper.IMemberMap GetMember(string columnName)
Returns​

ServiceStack.OrmLite.Dapper.SqlMapper.IMemberMap: Poperty member map

Parameters​
TypeNameDescription
System.StringcolumnNameDataReader column name

|

Implements​