Table of Contents

Class TranslationRegistration

Namespace
LinqToDB.Internal.DataProvider.Translation
Assembly
linq2db.dll
public sealed class TranslationRegistration
Inheritance
object
TranslationRegistration
Extension Methods

Methods

GetBinaryTranslation(ExpressionType, Type, Type)

public TranslationRegistration.TranslateBinaryFunc? GetBinaryTranslation(ExpressionType binaryType, Type leftType, Type rightType)

Parameters

binaryType ExpressionType
leftType Type
rightType Type

Returns

TranslationRegistration.TranslateBinaryFunc

GetMemberReplacementInfo(MemberInfoWithType)

public TranslationRegistration.MemberReplacement? GetMemberReplacementInfo(MemberHelper.MemberInfoWithType memberInfoWithType)

Parameters

memberInfoWithType MemberHelper.MemberInfoWithType

Returns

TranslationRegistration.MemberReplacement

GetTranslation(MemberInfoWithType)

public TranslationRegistration.TranslateFunc? GetTranslation(MemberHelper.MemberInfoWithType memberInfoWithType)

Parameters

memberInfoWithType MemberHelper.MemberInfoWithType

Returns

TranslationRegistration.TranslateFunc

GetUnaryTranslation(ExpressionType, Type)

public TranslationRegistration.TranslateUnaryFunc? GetUnaryTranslation(ExpressionType unaryType, Type operandType)

Parameters

unaryType ExpressionType
operandType Type

Returns

TranslationRegistration.TranslateUnaryFunc

ProvideReplacement(Expression)

public Expression? ProvideReplacement(Expression expression)

Parameters

expression Expression

Returns

Expression

RegisterBinaryInternal(ExpressionType, Type, Type, TranslateBinaryFunc)

public void RegisterBinaryInternal(ExpressionType binaryType, Type leftType, Type rightType, TranslationRegistration.TranslateBinaryFunc translateFunc)

Parameters

binaryType ExpressionType
leftType Type
rightType Type
translateFunc TranslationRegistration.TranslateBinaryFunc

RegisterBinaryInternal(LambdaExpression, TranslateBinaryFunc, bool)

public void RegisterBinaryInternal(LambdaExpression binaryPattern, TranslationRegistration.TranslateBinaryFunc translateBinaryFunc, bool isGenericTypeMatch = false)

Parameters

binaryPattern LambdaExpression
translateBinaryFunc TranslationRegistration.TranslateBinaryFunc
isGenericTypeMatch bool

RegisterConstructorInternal(LambdaExpression, TranslateFunc)

public void RegisterConstructorInternal(LambdaExpression memberAccessPattern, TranslationRegistration.TranslateFunc translateConstructorFunc)

Parameters

memberAccessPattern LambdaExpression
translateConstructorFunc TranslationRegistration.TranslateFunc

RegisterMemberInternal(LambdaExpression, TranslateMemberAccessFunc)

public void RegisterMemberInternal(LambdaExpression memberAccessPattern, TranslationRegistration.TranslateMemberAccessFunc translateMemberAccessFunc)

Parameters

memberAccessPattern LambdaExpression
translateMemberAccessFunc TranslationRegistration.TranslateMemberAccessFunc

RegisterMemberReplacement(LambdaExpression, LambdaExpression)

public void RegisterMemberReplacement(LambdaExpression pattern, LambdaExpression replacement)

Parameters

pattern LambdaExpression
replacement LambdaExpression

RegisterMethodInternal(LambdaExpression, TranslateMethodFunc, bool)

public void RegisterMethodInternal(LambdaExpression methodCallPattern, TranslationRegistration.TranslateMethodFunc translateMethodFunc, bool isGenericTypeMatch)

Parameters

methodCallPattern LambdaExpression
translateMethodFunc TranslationRegistration.TranslateMethodFunc
isGenericTypeMatch bool

RegisterUnaryInternal(ExpressionType, Type, TranslateUnaryFunc)

public void RegisterUnaryInternal(ExpressionType unaryType, Type operandType, TranslationRegistration.TranslateUnaryFunc translateFunc)

Parameters

unaryType ExpressionType
operandType Type
translateFunc TranslationRegistration.TranslateUnaryFunc

RegisterUnaryInternal(LambdaExpression, TranslateUnaryFunc, bool)

public void RegisterUnaryInternal(LambdaExpression unaryPattern, TranslationRegistration.TranslateUnaryFunc translateUnaryFunc, bool isGenericTypeMatch = false)

Parameters

unaryPattern LambdaExpression
translateUnaryFunc TranslationRegistration.TranslateUnaryFunc
isGenericTypeMatch bool