Class BinaryExpressionConverterBase
Base class for binary expression converters.
Inheritance
System.Object
BinaryExpressionConverterBase
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Data.Client.Queries.Conversion.ExpressionConverters
Assembly: Kephas.Data.Client.dll
Syntax
public abstract class BinaryExpressionConverterBase : IExpressionConverter
Constructors
| Improve this Doc View SourceBinaryExpressionConverterBase(Func<Expression, Expression, BinaryExpression>)
Initializes a new instance of the BinaryExpressionConverterBase class.
Declaration
protected BinaryExpressionConverterBase(Func<Expression, Expression, BinaryExpression> binaryExpressionFactory)
Parameters
Type | Name | Description |
---|---|---|
System.Func<System.Linq.Expressions.Expression, System.Linq.Expressions.Expression, System.Linq.Expressions.BinaryExpression> | binaryExpressionFactory | The binary expression factory. |
Methods
| Improve this Doc View SourceConvertExpression(IList<Expression>, Type, ParameterExpression)
Converts the provided expression to a LINQ expression.
Declaration
public virtual Expression ConvertExpression(IList<Expression> args, Type clientItemType, ParameterExpression lambdaArg)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IList<System.Linq.Expressions.Expression> | args | The arguments. |
System.Type | clientItemType | The client item type. |
System.Linq.Expressions.ParameterExpression | lambdaArg | The lambda argument. |
Returns
Type | Description |
---|---|
System.Linq.Expressions.Expression | The converted expression. |
PreProcessArguments(IList<Expression>)
Pre processes the arguments to make their types match.
Declaration
protected virtual IList<Expression> PreProcessArguments(IList<Expression> args)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IList<System.Linq.Expressions.Expression> | args | The arguments. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<System.Linq.Expressions.Expression> | A list of preprocessed arguments. |