C# Класс ServiceStack.OrmLite.Dapper.CustomPropertyTypeMap

Implements custom property mapping by user provided criteria (usually presence of some custom attribute with column to member mapping)
Наследование: SqlMapper.ITypeMap
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

CustomPropertyTypeMap() публичный Метод

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
Результат System

FindConstructor() публичный Метод

Always returns default constructor
public FindConstructor ( string names, Type types ) : ConstructorInfo
names string DataReader column names
types System.Type DataReader column types
Результат System.Reflection.ConstructorInfo

FindExplicitConstructor() публичный Метод

Always returns null
public FindExplicitConstructor ( ) : ConstructorInfo
Результат System.Reflection.ConstructorInfo

GetConstructorParameter() публичный Метод

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
Результат SqlMapper.IMemberMap

GetMember() публичный Метод

Returns property based on selector strategy
public GetMember ( string columnName ) : SqlMapper.IMemberMap
columnName string DataReader column name
Результат SqlMapper.IMemberMap