C# Class Remotion.Linq.SqlBackend.SqlStatementModel.SqlSpecificExpressions.SqlCaseExpression

Represents a SQL CASE WHEN expression.
Inheritance: Remotion.Linq.Clauses.Expressions.ExtensionExpression
Datei anzeigen Open project: re-motion/Relinq-SqlBackend Class Usage Examples

Public Methods

Method Description
Accept ( System.Linq.Expressions.ExpressionTreeVisitor visitor ) : Expression
CreateIfThenElse ( Type type, Expression test, Expression thenCase, Expression elseCase ) : SqlCaseExpression
CreateIfThenElseNull ( Type type, Expression test, Expression trueCase, Expression falseCase ) : SqlCaseExpression
SqlCaseExpression ( Type type, IEnumerable cases, Expression elseCase ) : System
ToString ( ) : string
Update ( ReadOnlyCollection newCases, Expression newElseCase ) : SqlCaseExpression

Protected Methods

Method Description
VisitChildren ( System.Linq.Expressions.ExpressionTreeVisitor visitor ) : Expression

Method Details

Accept() public method

public Accept ( System.Linq.Expressions.ExpressionTreeVisitor visitor ) : Expression
visitor System.Linq.Expressions.ExpressionTreeVisitor
return System.Linq.Expressions.Expression

CreateIfThenElse() public static method

public static CreateIfThenElse ( Type type, Expression test, Expression thenCase, Expression elseCase ) : SqlCaseExpression
type System.Type
test System.Linq.Expressions.Expression
thenCase System.Linq.Expressions.Expression
elseCase System.Linq.Expressions.Expression
return SqlCaseExpression

CreateIfThenElseNull() public static method

public static CreateIfThenElseNull ( Type type, Expression test, Expression trueCase, Expression falseCase ) : SqlCaseExpression
type System.Type
test System.Linq.Expressions.Expression
trueCase System.Linq.Expressions.Expression
falseCase System.Linq.Expressions.Expression
return SqlCaseExpression

SqlCaseExpression() public method

public SqlCaseExpression ( Type type, IEnumerable cases, Expression elseCase ) : System
type System.Type
cases IEnumerable
elseCase System.Linq.Expressions.Expression
return System

ToString() public method

public ToString ( ) : string
return string

Update() public method

public Update ( ReadOnlyCollection newCases, Expression newElseCase ) : SqlCaseExpression
newCases ReadOnlyCollection
newElseCase System.Linq.Expressions.Expression
return SqlCaseExpression

VisitChildren() protected method

protected VisitChildren ( System.Linq.Expressions.ExpressionTreeVisitor visitor ) : Expression
visitor System.Linq.Expressions.ExpressionTreeVisitor
return System.Linq.Expressions.Expression