C# Класс Shaolinq.Persistence.Linq.SqlExpressionReplacer

Replaces an expression within an expression tree with another expression
Наследование: SqlExpressionVisitor
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Replace ( Expression expression, Expression searchFor, Expression replaceWith ) : Expression

Walks an expression; finds the searchFor expression and replaces it with replaceWith. Uses an object identity comparison to identify if searchFor and replaceWith are the same.

Replace ( Expression expression, Expression searchFor, Expression replaceWith, Comparison compareExpressions ) : Expression

Walks an expression; finds the searchFor expression and replaces it with replaceWith. Uses the provided Comparison{OBJECT_TYPE} to compare searchFor and replaceWith.

Replace ( Expression expression, Expression>.Func selector ) : Expression

Защищенные методы

Метод Описание
Visit ( Expression expression ) : Expression

Приватные методы

Метод Описание
SqlExpressionReplacer ( Expression searchFor, Expression replaceWith, Comparison compareExpressions ) : System
SqlExpressionReplacer ( Expression>.Func selector ) : System

Описание методов

Replace() публичный статический Метод

Walks an expression; finds the searchFor expression and replaces it with replaceWith. Uses an object identity comparison to identify if searchFor and replaceWith are the same.
public static Replace ( Expression expression, Expression searchFor, Expression replaceWith ) : Expression
expression System.Linq.Expressions.Expression The expression to look withib
searchFor System.Linq.Expressions.Expression The expression to look for
replaceWith System.Linq.Expressions.Expression The expression to replace with
Результат System.Linq.Expressions.Expression

Replace() публичный статический Метод

Walks an expression; finds the searchFor expression and replaces it with replaceWith. Uses the provided Comparison{OBJECT_TYPE} to compare searchFor and replaceWith.
public static Replace ( Expression expression, Expression searchFor, Expression replaceWith, Comparison compareExpressions ) : Expression
expression System.Linq.Expressions.Expression The expression to look withib
searchFor System.Linq.Expressions.Expression The expression to look for
replaceWith System.Linq.Expressions.Expression The expression to replace with
compareExpressions Comparison A /// used to compare and
Результат System.Linq.Expressions.Expression

Replace() публичный статический Метод

public static Replace ( Expression expression, Expression>.Func selector ) : Expression
expression System.Linq.Expressions.Expression
selector Expression>.Func
Результат System.Linq.Expressions.Expression

Visit() защищенный Метод

protected Visit ( Expression expression ) : Expression
expression System.Linq.Expressions.Expression
Результат System.Linq.Expressions.Expression