Class MethodCallExpressionConverterBase
Base class for MethodCallExpression based converters.
Inheritance
System.Object
MethodCallExpressionConverterBase
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 MethodCallExpressionConverterBase : IExpressionConverter
Constructors
| Improve this Doc View SourceMethodCallExpressionConverterBase(MethodInfo, Boolean)
Initializes a new instance of the MethodCallExpressionConverterBase class.
Declaration
protected MethodCallExpressionConverterBase(MethodInfo methodInfo, bool convertArgs = false)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.MethodInfo | methodInfo | Information describing the method. |
System.Boolean | convertArgs | Optional. |
Properties
| Improve this Doc View SourceConvertArgs
Gets a value indicating whether to convert arguments to the parameters' types.
Declaration
public bool ConvertArgs { get; }
Property Value
Type | Description |
---|---|
System.Boolean | True if convert arguments, false if not. |
Methods
| Improve this Doc View SourceConvertExpression(IList<Expression>, Type, ParameterExpression)
Converts the provided expression to a LINQ expression.
Declaration
public 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(IEnumerable<Expression>)
Gets the call arguments.
Declaration
protected virtual IEnumerable<Expression> PreProcessArguments(IEnumerable<Expression> args)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<System.Linq.Expressions.Expression> | args | The arguments. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Linq.Expressions.Expression> | The call arguments. |