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

Represents default type mapping strategy used by Dapper
Наследование: SqlMapper.ITypeMap
Показать файл Открыть проект

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

Метод Описание
DefaultTypeMap ( Type type ) : System

Creates default type map

FindConstructor ( string names, Type types ) : ConstructorInfo

Finds best constructor

FindExplicitConstructor ( ) : ConstructorInfo

Returns the constructor, if any, that has the ExplicitConstructorAttribute on it.

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

Gets mapping for constructor parameter

GetMember ( string columnName ) : SqlMapper.IMemberMap

Gets member mapping for column

Приватные методы

Метод Описание
GetPropertySetter ( PropertyInfo propertyInfo, Type type ) : MethodInfo
GetSettableFields ( Type t ) : List
GetSettableProps ( Type t ) : List
IsParameterMatch ( ParameterInfo x, ParameterInfo y ) : bool

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

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

Creates default type map
public DefaultTypeMap ( Type type ) : System
type System.Type Entity type
Результат System

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

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

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

Returns the constructor, if any, that has the ExplicitConstructorAttribute on it.
public FindExplicitConstructor ( ) : ConstructorInfo
Результат System.Reflection.ConstructorInfo

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

Gets mapping for constructor parameter
public GetConstructorParameter ( ConstructorInfo constructor, string columnName ) : SqlMapper.IMemberMap
constructor System.Reflection.ConstructorInfo Constructor to resolve
columnName string DataReader column name
Результат SqlMapper.IMemberMap

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

Gets member mapping for column
public GetMember ( string columnName ) : SqlMapper.IMemberMap
columnName string DataReader column name
Результат SqlMapper.IMemberMap