C# Class IQ.Data.ImplicitMapping

A simple query mapping that attempts to infer mapping from naming conventionss
Inheritance: QueryMapping
Mostra file Open project: maravillas/linq-to-delicious

Public Methods

Method Description
GetAssociationKeys ( MemberInfo member, List &members1, List &members2 ) : void
GetColumnName ( MemberInfo member ) : string
GetRelatedType ( MemberInfo member ) : Type
GetTableName ( Type rowType ) : string
ImplicitMapping ( QueryLanguage language ) : System
IsColumn ( MemberInfo member ) : bool
IsEntity ( Type type ) : bool
IsIdentity ( MemberInfo member ) : bool
IsMapped ( MemberInfo member ) : bool
IsRelationship ( MemberInfo member ) : bool
Plural ( string name ) : string
Singular ( string name ) : string
SplitWords ( string name ) : string

Private Methods

Method Description
NameWithoutTrailingDigits ( string name ) : string

Method Details

GetAssociationKeys() public method

public GetAssociationKeys ( MemberInfo member, List &members1, List &members2 ) : void
member System.Reflection.MemberInfo
members1 List
members2 List
return void

GetColumnName() public method

public GetColumnName ( MemberInfo member ) : string
member System.Reflection.MemberInfo
return string

GetRelatedType() public method

public GetRelatedType ( MemberInfo member ) : Type
member System.Reflection.MemberInfo
return System.Type

GetTableName() public method

public GetTableName ( Type rowType ) : string
rowType System.Type
return string

ImplicitMapping() public method

public ImplicitMapping ( QueryLanguage language ) : System
language QueryLanguage
return System

IsColumn() public method

public IsColumn ( MemberInfo member ) : bool
member System.Reflection.MemberInfo
return bool

IsEntity() public method

public IsEntity ( Type type ) : bool
type System.Type
return bool

IsIdentity() public method

public IsIdentity ( MemberInfo member ) : bool
member System.Reflection.MemberInfo
return bool

IsMapped() public method

public IsMapped ( MemberInfo member ) : bool
member System.Reflection.MemberInfo
return bool

IsRelationship() public method

public IsRelationship ( MemberInfo member ) : bool
member System.Reflection.MemberInfo
return bool

Plural() public static method

public static Plural ( string name ) : string
name string
return string

Singular() public static method

public static Singular ( string name ) : string
name string
return string

SplitWords() public static method

public static SplitWords ( string name ) : string
name string
return string