C# Class Shaolinq.Persistence.Linq.SqlExpressionReplacer

Replaces an expression within an expression tree with another expression
Inheritance: SqlExpressionVisitor
Afficher le fichier Open project: tumtumtum/Shaolinq Class Usage Examples

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
Visit ( Expression expression ) : Expression

Private Methods

Méthode Description
SqlExpressionReplacer ( Expression searchFor, Expression replaceWith, Comparison compareExpressions ) : System
SqlExpressionReplacer ( Expression>.Func selector ) : System

Method Details

Replace() public static méthode

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
Résultat System.Linq.Expressions.Expression

Replace() public static méthode

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
Résultat System.Linq.Expressions.Expression

Replace() public static méthode

public static Replace ( Expression expression, Expression>.Func selector ) : Expression
expression System.Linq.Expressions.Expression
selector Expression>.Func
Résultat System.Linq.Expressions.Expression

Visit() protected méthode

protected Visit ( Expression expression ) : Expression
expression System.Linq.Expressions.Expression
Résultat System.Linq.Expressions.Expression