Interface ITranslationContext
- Namespace
- LinqToDB.Linq.Translation
- Assembly
- linq2db.dll
public interface ITranslationContext : ISqlExpressionTranslator
- Inherited Members
- Extension Methods
Properties
CurrentAlias
string? CurrentAlias { get; }
Property Value
CurrentColumnDescriptor
ColumnDescriptor? CurrentColumnDescriptor { get; }
Property Value
CurrentSelectQuery
SelectQuery CurrentSelectQuery { get; }
Property Value
DataOptions
DataOptions DataOptions { get; }
Property Value
ExpressionFactory
ISqlExpressionFactory ExpressionFactory { get; }
Property Value
MappingSchema
MappingSchema MappingSchema { get; }
Property Value
Methods
BuildAggregationFunction(int, Expression, AllowedAggregationOperators, Func<IAggregationContext, BuildAggregationFunctionResult>)
Expression? BuildAggregationFunction(int sequenceExpressionIndex, Expression functionExpression, ITranslationContext.AllowedAggregationOperators allowedOperations, Func<IAggregationContext, BuildAggregationFunctionResult> functionFactory)
Parameters
sequenceExpressionIndexintfunctionExpressionExpressionallowedOperationsITranslationContext.AllowedAggregationOperatorsfunctionFactoryFunc<IAggregationContext, BuildAggregationFunctionResult>
Returns
BuildArrayAggregationFunction(int, Expression, AllowedAggregationOperators, Func<IAggregationContext, BuildAggregationFunctionResult>)
Expression? BuildArrayAggregationFunction(int sequenceExpressionIndex, Expression functionExpression, ITranslationContext.AllowedAggregationOperators allowedOperations, Func<IAggregationContext, BuildAggregationFunctionResult> functionFactory)
Parameters
sequenceExpressionIndexintfunctionExpressionExpressionallowedOperationsITranslationContext.AllowedAggregationOperatorsfunctionFactoryFunc<IAggregationContext, BuildAggregationFunctionResult>
Returns
CanBeEvaluated(Expression)
bool CanBeEvaluated(Expression expression)
Parameters
expressionExpression
Returns
CanBeEvaluatedOnClient(Expression)
bool CanBeEvaluatedOnClient(Expression expression)
Parameters
expressionExpression
Returns
CreateErrorExpression(Expression, string?, Type?)
SqlErrorExpression CreateErrorExpression(Expression basedOn, string? message = null, Type? type = null)
Parameters
basedOnExpressionmessagestringtypeType
Returns
CreatePlaceholder(SelectQuery, ISqlExpression, Expression)
SqlPlaceholderExpression CreatePlaceholder(SelectQuery selectQuery, ISqlExpression sqlExpression, Expression basedOn)
Parameters
selectQuerySelectQuerysqlExpressionISqlExpressionbasedOnExpression
Returns
Evaluate(Expression)
object? Evaluate(Expression expression)
Parameters
expressionExpression
Returns
- object
GetAggregationContext(Expression)
Expression? GetAggregationContext(Expression expression)
Parameters
expressionExpression
Returns
GetAggregationSelectQuery(Expression)
SelectQuery GetAggregationSelectQuery(Expression enumerableContext)
Parameters
enumerableContextExpression
Returns
MarkAsNonParameter(Expression, object?)
Forces expression cache to compare expressions by value, not by reference.
void MarkAsNonParameter(Expression expression, object? currentValue)
Parameters
expressionExpressioncurrentValueobject
Translate(Expression, TranslationFlags)
Expression Translate(Expression expression, TranslationFlags translationFlags = TranslationFlags.Sql)
Parameters
expressionExpressiontranslationFlagsTranslationFlags
Returns
TryEvaluate(ISqlExpression, out object?)
bool TryEvaluate(ISqlExpression expression, out object? result)
Parameters
expressionISqlExpressionresultobject
Returns
UsingColumnDescriptor(ColumnDescriptor?)
IDisposable UsingColumnDescriptor(ColumnDescriptor? columnDescriptor)
Parameters
columnDescriptorColumnDescriptor
Returns
UsingCurrentAggregationContext(Expression)
IDisposable UsingCurrentAggregationContext(Expression basedOn)
Parameters
basedOnExpression