C# 클래스 IQ.Data.QueryMapping

Defines mapping information & rules for the query provider
파일 보기 프로젝트 열기: maravillas/linq-to-delicious 1 사용 예제들

공개 메소드들

메소드 설명
GetAggregator ( Type expectedType, Type actualType ) : LambdaExpression

Get a function that coerces an a sequence of one type into another type. This is primarily used for aggregators stored in ProjectionExpression's, which are used to represent the final transformation of the entire result set of a query.

GetAssociationKeys ( MemberInfo association, List &declaredTypeMembers, List &associatedMembers ) : void

Get the members for the key properities to be joined in an association relationship

GetColumnName ( MemberInfo member ) : string

The name of the corresponding table column

GetMappedMembers ( Type rowType ) : IEnumerable

A sequence of all the mapped members

GetMemberExpression ( Expression root, MemberInfo member ) : Expression

Get an expression for a mapped property relative to a root expression. The root is either a TableExpression or an expression defining an entity instance.

GetRelatedType ( MemberInfo member ) : Type

The type of the entity on the other side of the relationship

GetTableName ( Type rowType ) : string

The name of the corresponding database table

GetTableQuery ( Type rowType ) : ProjectionExpression

Get a query expression that selects all entities from a table

GetTypeProjection ( Expression root, Type type ) : Expression

Gets an expression that constructs an entity instance relative to a root. The root is most often a TableExpression, but may be any other experssion such as a ConstantExpression.

IsColumn ( MemberInfo member ) : bool

Determines if a property is mapped onto a column

IsEntity ( Type type ) : bool

Determines if a give CLR type is mapped as a database entity

IsIdentity ( MemberInfo member ) : bool

Determines if a property represents or is part of the entities unique identity (often primary key)

IsMapped ( MemberInfo member ) : bool

Deterimines is a property is mapped onto a column or relationship

IsRelationship ( MemberInfo member ) : bool

Determines if a property is mapped as a relationship

IsSingletonRelationship ( MemberInfo member ) : bool

Determines if a relationship property refers to a single optional entity (as opposed to a collection.)

Translate ( Expression expression ) : Expression

Apply mapping translations to this expression

보호된 메소드들

메소드 설명
QueryMapping ( QueryLanguage language ) : System

비공개 메소드들

메소드 설명
CoerceElement ( Type expectedElementType, Expression expression ) : Expression

메소드 상세

GetAggregator() 공개 메소드

Get a function that coerces an a sequence of one type into another type. This is primarily used for aggregators stored in ProjectionExpression's, which are used to represent the final transformation of the entire result set of a query.
public GetAggregator ( Type expectedType, Type actualType ) : LambdaExpression
expectedType System.Type
actualType System.Type
리턴 System.Linq.Expressions.LambdaExpression

GetAssociationKeys() 공개 추상적인 메소드

Get the members for the key properities to be joined in an association relationship
public abstract GetAssociationKeys ( MemberInfo association, List &declaredTypeMembers, List &associatedMembers ) : void
association System.Reflection.MemberInfo
declaredTypeMembers List
associatedMembers List
리턴 void

GetColumnName() 공개 추상적인 메소드

The name of the corresponding table column
public abstract GetColumnName ( MemberInfo member ) : string
member System.Reflection.MemberInfo
리턴 string

GetMappedMembers() 공개 메소드

A sequence of all the mapped members
public GetMappedMembers ( Type rowType ) : IEnumerable
rowType System.Type
리턴 IEnumerable

GetMemberExpression() 공개 메소드

Get an expression for a mapped property relative to a root expression. The root is either a TableExpression or an expression defining an entity instance.
public GetMemberExpression ( Expression root, MemberInfo member ) : Expression
root System.Linq.Expressions.Expression
member System.Reflection.MemberInfo
리턴 System.Linq.Expressions.Expression

GetRelatedType() 공개 추상적인 메소드

The type of the entity on the other side of the relationship
public abstract GetRelatedType ( MemberInfo member ) : Type
member System.Reflection.MemberInfo
리턴 System.Type

GetTableName() 공개 추상적인 메소드

The name of the corresponding database table
public abstract GetTableName ( Type rowType ) : string
rowType System.Type
리턴 string

GetTableQuery() 공개 메소드

Get a query expression that selects all entities from a table
public GetTableQuery ( Type rowType ) : ProjectionExpression
rowType System.Type
리턴 ProjectionExpression

GetTypeProjection() 공개 메소드

Gets an expression that constructs an entity instance relative to a root. The root is most often a TableExpression, but may be any other experssion such as a ConstantExpression.
public GetTypeProjection ( Expression root, Type type ) : Expression
root System.Linq.Expressions.Expression
type System.Type
리턴 System.Linq.Expressions.Expression

IsColumn() 공개 추상적인 메소드

Determines if a property is mapped onto a column
public abstract IsColumn ( MemberInfo member ) : bool
member System.Reflection.MemberInfo
리턴 bool

IsEntity() 공개 추상적인 메소드

Determines if a give CLR type is mapped as a database entity
public abstract IsEntity ( Type type ) : bool
type System.Type
리턴 bool

IsIdentity() 공개 추상적인 메소드

Determines if a property represents or is part of the entities unique identity (often primary key)
public abstract IsIdentity ( MemberInfo member ) : bool
member System.Reflection.MemberInfo
리턴 bool

IsMapped() 공개 추상적인 메소드

Deterimines is a property is mapped onto a column or relationship
public abstract IsMapped ( MemberInfo member ) : bool
member System.Reflection.MemberInfo
리턴 bool

IsRelationship() 공개 추상적인 메소드

Determines if a property is mapped as a relationship
public abstract IsRelationship ( MemberInfo member ) : bool
member System.Reflection.MemberInfo
리턴 bool

IsSingletonRelationship() 공개 메소드

Determines if a relationship property refers to a single optional entity (as opposed to a collection.)
public IsSingletonRelationship ( MemberInfo member ) : bool
member System.Reflection.MemberInfo
리턴 bool

QueryMapping() 보호된 메소드

protected QueryMapping ( QueryLanguage language ) : System
language QueryLanguage
리턴 System

Translate() 공개 메소드

Apply mapping translations to this expression
public Translate ( Expression expression ) : Expression
expression System.Linq.Expressions.Expression
리턴 System.Linq.Expressions.Expression