C# Class SDataLinqProvider.SDataQueryTranslator

Inheritance: ExpressionVisitor
ファイルを表示 Open project: jboyce/LinqToSData Class Usage Examples

Private Properties

Property Type Description
AddIncludes void
BuildupResourceKindMappings void
GetEntityInterfaceFromType System.Type
GetResourcePath string
GetResourceUrl string
IdToQueryText string
StripQuotes System.Linq.Expressions.Expression
Translate TranslateResult

Public Methods

Method Description
SDataQueryTranslator ( string sdataContractUrl, Type entityType ) : System

Protected Methods

Method Description
VisitBinary ( BinaryExpression binaryExpr ) : Expression
VisitConstant ( ConstantExpression constantExpr ) : Expression
VisitMemberAccess ( MemberExpression memberExpr ) : Expression
VisitMethodCall ( MethodCallExpression methodCallExpr ) : Expression

Private Methods

Method Description
AddIncludes ( IEnumerable includeNames ) : void
BuildupResourceKindMappings ( ) : void
GetEntityInterfaceFromType ( Type type ) : Type
GetResourcePath ( Type type ) : string
GetResourceUrl ( ) : string
IdToQueryText ( string entityId ) : string
StripQuotes ( Expression expression ) : Expression
Translate ( Expression expression, IEnumerable includeNames ) : TranslateResult

Method Details

SDataQueryTranslator() public method

public SDataQueryTranslator ( string sdataContractUrl, Type entityType ) : System
sdataContractUrl string
entityType System.Type
return System

VisitBinary() protected method

protected VisitBinary ( BinaryExpression binaryExpr ) : Expression
binaryExpr System.Linq.Expressions.BinaryExpression
return System.Linq.Expressions.Expression

VisitConstant() protected method

protected VisitConstant ( ConstantExpression constantExpr ) : Expression
constantExpr System.Linq.Expressions.ConstantExpression
return System.Linq.Expressions.Expression

VisitMemberAccess() protected method

protected VisitMemberAccess ( MemberExpression memberExpr ) : Expression
memberExpr System.Linq.Expressions.MemberExpression
return System.Linq.Expressions.Expression

VisitMethodCall() protected method

protected VisitMethodCall ( MethodCallExpression methodCallExpr ) : Expression
methodCallExpr System.Linq.Expressions.MethodCallExpression
return System.Linq.Expressions.Expression