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
Type | Name | Description |
---|---|---|
System.String[] | names | DataReader 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
Type | Name |
---|---|
ConstructorInfo | constructor |
System.String | columnName |
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
Type | Name | Description |
---|---|---|
System.String | columnName | DataReader column name |
|