C# Class ServiceStack.OrmLite.Dapper.DefaultTypeMap

Represents default type mapping strategy used by Dapper
Inheritance: SqlMapper.ITypeMap
ファイルを表示 Open project: ServiceStack/ServiceStack.OrmLite

Public Methods

Method Description
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

Private Methods

Method Description
GetPropertySetter ( PropertyInfo propertyInfo, Type type ) : MethodInfo
GetSettableFields ( Type t ) : List
GetSettableProps ( Type t ) : List
IsParameterMatch ( ParameterInfo x, ParameterInfo y ) : bool

Method Details

DefaultTypeMap() public method

Creates default type map
public DefaultTypeMap ( Type type ) : System
type System.Type Entity type
return System

FindConstructor() public method

Finds best 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

Returns the constructor, if any, that has the ExplicitConstructorAttribute on it.
public FindExplicitConstructor ( ) : ConstructorInfo
return System.Reflection.ConstructorInfo

GetConstructorParameter() public method

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
return SqlMapper.IMemberMap

GetMember() public method

Gets member mapping for column
public GetMember ( string columnName ) : SqlMapper.IMemberMap
columnName string DataReader column name
return SqlMapper.IMemberMap