C# Класс IQ.Data.QueryMapping

Defines mapping information & rules for the query provider
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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