Class ParameterExtractingExpressionVisitor
Class for extracting parameters from Expression.
Inheritance
System.Object
System.Linq.Expressions.ExpressionVisitor
ParameterExtractingExpressionVisitor
Namespace: Kros.KORM.Query.Sql
Assembly: Kros.KORM.dll
Syntax
public class ParameterExtractingExpressionVisitor : ExpressionVisitor
Methods
ExtractParametersToCommand(DbCommand, Expression)
Extracts the parrameters to command.
Declaration
public static void ExtractParametersToCommand(DbCommand command, Expression expression)
Parameters
Type | Name | Description |
---|---|---|
System.Data.Common.DbCommand | command | The command. |
System.Linq.Expressions.Expression | expression | The expression. |
Visit(Expression)
Dispatches the expression to one of the more specialized visit methods in this class.
Declaration
public override Expression Visit(Expression node)
Parameters
Type | Name | Description |
---|---|---|
System.Linq.Expressions.Expression | node | The expression to visit. |
Returns
Type | Description |
---|---|
System.Linq.Expressions.Expression | The modified expression, if it or any subexpression was modified; otherwise, returns the original expression. |
Overrides
System.Linq.Expressions.ExpressionVisitor.Visit(System.Linq.Expressions.Expression)
See Also
System.Linq.Expressions.ExpressionVisitor