CaseExpression Constructors

Definition

Overloads

CaseExpression(CaseWhenClause[])

Initializes a new instance of the CaseExpression class.

CaseExpression(IReadOnlyList<CaseWhenClause>, Expression)

Initializes a new instance of the CaseExpression class.

CaseExpression(Expression, CaseWhenClause[])

Initializes a new instance of the CaseExpression class.

CaseExpression(Expression, IReadOnlyList<CaseWhenClause>, Expression)

Initializes a new instance of the CaseExpression class.

CaseExpression(CaseWhenClause[])

Source:
CaseExpression.cs

Initializes a new instance of the CaseExpression class.

C#
public CaseExpression (params Microsoft.EntityFrameworkCore.Query.Expressions.CaseWhenClause[] whenClauses);

Parameters

whenClauses
CaseWhenClause[]

The list of when clauses.

Applies to

Entity Framework Core 2.2
Proizvod Verzije
Entity Framework Core 2.2

CaseExpression(IReadOnlyList<CaseWhenClause>, Expression)

Source:
CaseExpression.cs

Initializes a new instance of the CaseExpression class.

C#
public CaseExpression (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Query.Expressions.CaseWhenClause> whenClauses, System.Linq.Expressions.Expression elseResult);

Parameters

whenClauses
IReadOnlyList<CaseWhenClause>

The list of when clauses.

elseResult
Expression

The else result expression.

Applies to

Entity Framework Core 2.2
Proizvod Verzije
Entity Framework Core 2.2

CaseExpression(Expression, CaseWhenClause[])

Source:
CaseExpression.cs

Initializes a new instance of the CaseExpression class.

C#
public CaseExpression (System.Linq.Expressions.Expression operand, params Microsoft.EntityFrameworkCore.Query.Expressions.CaseWhenClause[] whenClauses);

Parameters

operand
Expression

The case operand expression.

whenClauses
CaseWhenClause[]

The list of when clauses.

Applies to

Entity Framework Core 2.2
Proizvod Verzije
Entity Framework Core 2.2

CaseExpression(Expression, IReadOnlyList<CaseWhenClause>, Expression)

Source:
CaseExpression.cs

Initializes a new instance of the CaseExpression class.

C#
public CaseExpression (System.Linq.Expressions.Expression operand, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Query.Expressions.CaseWhenClause> whenClauses, System.Linq.Expressions.Expression elseResult);

Parameters

operand
Expression

The case operand expression.

whenClauses
IReadOnlyList<CaseWhenClause>

The list of when clauses.

elseResult
Expression

The else result expression.

Applies to

Entity Framework Core 2.2
Proizvod Verzije
Entity Framework Core 2.2