C# Class ServiceStack.OrmLite.Dapper.CustomPropertyTypeMap

Implements custom property mapping by user provided criteria (usually presence of some custom attribute with column to member mapping)
Inheritance: SqlMapper.ITypeMap
ファイルを表示 Open project: ServiceStack/ServiceStack.OrmLite

Public Methods

Method Description
CustomPropertyTypeMap ( Type type, Func propertySelector ) : System

Creates custom property mapping

FindConstructor ( string names, Type types ) : ConstructorInfo

Always returns default constructor

FindExplicitConstructor ( ) : ConstructorInfo

Always returns null

GetConstructorParameter ( ConstructorInfo constructor, string columnName ) : SqlMapper.IMemberMap

Not implemented as far as default constructor used for all cases

GetMember ( string columnName ) : SqlMapper.IMemberMap

Returns property based on selector strategy

Method Details

CustomPropertyTypeMap() public method

Creates custom property mapping
public CustomPropertyTypeMap ( Type type, Func propertySelector ) : System
type System.Type Target entity type
propertySelector Func Property selector based on target type and DataReader column name
return System

FindConstructor() public method

Always returns default constructor
public FindConstructor ( string names, Type types ) : ConstructorInfo
names string DataReader column names
types System.Type DataReader column types
return System.Reflection.ConstructorInfo

FindExplicitConstructor() public method

Always returns null
public FindExplicitConstructor ( ) : ConstructorInfo
return System.Reflection.ConstructorInfo

GetConstructorParameter() public method

Not implemented as far as default constructor used for all cases
public GetConstructorParameter ( ConstructorInfo constructor, string columnName ) : SqlMapper.IMemberMap
constructor System.Reflection.ConstructorInfo
columnName string
return SqlMapper.IMemberMap

GetMember() public method

Returns property based on selector strategy
public GetMember ( string columnName ) : SqlMapper.IMemberMap
columnName string DataReader column name
return SqlMapper.IMemberMap