共用方式為


CaseExpression 建構函式

定義

多載

CaseExpression(SqlExpression, IReadOnlyList<CaseWhenClause>)
CaseExpression(IReadOnlyList<CaseWhenClause>, SqlExpression)

建立 類別的新實例,表示搜尋的 CaseExpression CASE 運算式。

CaseExpression(SqlExpression, IReadOnlyList<CaseWhenClause>, SqlExpression)

建立 類別的新實例,這個實例 CaseExpression 表示簡單的 CASE 運算式。

CaseExpression(SqlExpression, IReadOnlyList<CaseWhenClause>)

public CaseExpression (Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression operand, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Query.SqlExpressions.CaseWhenClause> whenClauses);
new Microsoft.EntityFrameworkCore.Query.SqlExpressions.CaseExpression : Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Query.SqlExpressions.CaseWhenClause> -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.CaseExpression
Public Sub New (operand As SqlExpression, whenClauses As IReadOnlyList(Of CaseWhenClause))

參數

operand
SqlExpression

適用於

CaseExpression(IReadOnlyList<CaseWhenClause>, SqlExpression)

建立 類別的新實例,表示搜尋的 CaseExpression CASE 運算式。

public CaseExpression (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Query.SqlExpressions.CaseWhenClause> whenClauses, Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression elseResult);
public CaseExpression (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Query.SqlExpressions.CaseWhenClause> whenClauses, Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression elseResult = default);
public CaseExpression (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Query.SqlExpressions.CaseWhenClause> whenClauses, Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression? elseResult = default);
new Microsoft.EntityFrameworkCore.Query.SqlExpressions.CaseExpression : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Query.SqlExpressions.CaseWhenClause> * Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.CaseExpression
Public Sub New (whenClauses As IReadOnlyList(Of CaseWhenClause), elseResult As SqlExpression)
Public Sub New (whenClauses As IReadOnlyList(Of CaseWhenClause), Optional elseResult As SqlExpression = Nothing)

參數

whenClauses
IReadOnlyList<CaseWhenClause>

要評估條件並從中取得結果的 CaseWhenClause 清單。

elseResult
SqlExpression

如果沒有相符專案,則 WhenClauses 傳回的值。如果有的話。

適用於

CaseExpression(SqlExpression, IReadOnlyList<CaseWhenClause>, SqlExpression)

建立 類別的新實例,這個實例 CaseExpression 表示簡單的 CASE 運算式。

public CaseExpression (Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression operand, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Query.SqlExpressions.CaseWhenClause> whenClauses, Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression elseResult);
public CaseExpression (Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression operand, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Query.SqlExpressions.CaseWhenClause> whenClauses, Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression elseResult = default);
public CaseExpression (Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression operand, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Query.SqlExpressions.CaseWhenClause> whenClauses, Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression? elseResult = default);
new Microsoft.EntityFrameworkCore.Query.SqlExpressions.CaseExpression : Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Query.SqlExpressions.CaseWhenClause> * Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.CaseExpression
Public Sub New (operand As SqlExpression, whenClauses As IReadOnlyList(Of CaseWhenClause), elseResult As SqlExpression)
Public Sub New (operand As SqlExpression, whenClauses As IReadOnlyList(Of CaseWhenClause), Optional elseResult As SqlExpression = Nothing)

參數

operand
SqlExpression

與 中比較 TestWhenClauses 運算式。

whenClauses
IReadOnlyList<CaseWhenClause>

要比較和取得結果的 CaseWhenClause 清單。

elseResult
SqlExpression

如果沒有相符專案,則 WhenClauses 傳回的值。如果有的話。

適用於