C# Class NPoco.PocoDataBuilder

ファイルを表示 Open project: schotime/NPoco Class Usage Examples

Private Properties

Property Type Description
GetColumnInfos NPoco.ColumnInfo[]
GetFastCreate NPoco.FastCreate
GetListType System.Type
GetPocoColumns IEnumerable
GetPocoMembers IEnumerable
InitializedPocoDataBuilder NPoco.PocoData
InitializedPocoDataBuilder NPoco.TableInfo

Public Methods

Method Description
GetMemberAccessors ( IEnumerable memberInfos ) : List
Init ( ) : InitializedPocoDataBuilder
IsDictionaryType ( Type type ) : bool
IsList ( MemberInfo mi ) : bool
JoinStrings ( string prefix, string end ) : string
PocoDataBuilder ( Type type, MapperCollection mapper ) : System

Protected Methods

Method Description
CreateAlias ( string typeName, Type typeIn ) : string
GetColumnInfo ( MemberInfo mi, Type type ) : ColumnInfo
GetColumnName ( string prefix, string columnName ) : string
GetTableInfo ( Type type, ColumnInfo columnInfos, List memberInfos ) : TableInfoPlan

Private Methods

Method Description
GetColumnInfos ( Type type ) : NPoco.ColumnInfo[]
GetFastCreate ( Type memberType, MapperCollection mapperCollection, bool isList, bool isDynamic ) : NPoco.FastCreate
GetListType ( Type memberType, bool isList ) : Type
GetPocoColumns ( IEnumerable members, bool all ) : IEnumerable
GetPocoMembers ( MapperCollection mapper, ColumnInfo columnInfos, List memberInfos, string prefix = null ) : IEnumerable
InitializedPocoDataBuilder ( ) : NPoco.PocoData
InitializedPocoDataBuilder ( ) : NPoco.TableInfo

Method Details

CreateAlias() protected method

protected CreateAlias ( string typeName, Type typeIn ) : string
typeName string
typeIn System.Type
return string

GetColumnInfo() protected method

protected GetColumnInfo ( MemberInfo mi, Type type ) : ColumnInfo
mi System.Reflection.MemberInfo
type System.Type
return ColumnInfo

GetColumnName() protected method

protected GetColumnName ( string prefix, string columnName ) : string
prefix string
columnName string
return string

GetMemberAccessors() public method

public GetMemberAccessors ( IEnumerable memberInfos ) : List
memberInfos IEnumerable
return List

GetTableInfo() protected method

protected GetTableInfo ( Type type, ColumnInfo columnInfos, List memberInfos ) : TableInfoPlan
type System.Type
columnInfos ColumnInfo
memberInfos List
return TableInfoPlan

Init() public method

public Init ( ) : InitializedPocoDataBuilder
return InitializedPocoDataBuilder

IsDictionaryType() public static method

public static IsDictionaryType ( Type type ) : bool
type System.Type
return bool

IsList() public static method

public static IsList ( MemberInfo mi ) : bool
mi System.Reflection.MemberInfo
return bool

JoinStrings() public static method

public static JoinStrings ( string prefix, string end ) : string
prefix string
end string
return string

PocoDataBuilder() public method

public PocoDataBuilder ( Type type, MapperCollection mapper ) : System
type System.Type
mapper MapperCollection
return System