Aracılığıyla paylaş


ISqlExpressionFactory.Case Yöntem

Tanım

Aşırı Yüklemeler

Case(SqlExpression, CaseWhenClause[])
Geçersiz.

SQL ağacında case deyimini temsil eden yeni CaseExpression bir oluşturur.

Case(IReadOnlyList<CaseWhenClause>, SqlExpression)

SQL ağacında case deyimini temsil eden yeni CaseExpression bir oluşturur.

Case(SqlExpression, IReadOnlyList<CaseWhenClause>, SqlExpression)

SQL ağacında case deyimini temsil eden yeni CaseExpression bir oluşturur.

Case(SqlExpression, CaseWhenClause[])

Dikkat

Use overload which takes IReadOnlyList instead of params

SQL ağacında case deyimini temsil eden yeni CaseExpression bir oluşturur.

public Microsoft.EntityFrameworkCore.Query.SqlExpressions.CaseExpression Case (Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression operand, params Microsoft.EntityFrameworkCore.Query.SqlExpressions.CaseWhenClause[] whenClauses);
[System.Obsolete("Use overload which takes IReadOnlyList instead of params")]
public Microsoft.EntityFrameworkCore.Query.SqlExpressions.CaseExpression Case (Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression operand, params Microsoft.EntityFrameworkCore.Query.SqlExpressions.CaseWhenClause[] whenClauses);
abstract member Case : Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression * Microsoft.EntityFrameworkCore.Query.SqlExpressions.CaseWhenClause[] -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.CaseExpression
[<System.Obsolete("Use overload which takes IReadOnlyList instead of params")>]
abstract member Case : Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression * Microsoft.EntityFrameworkCore.Query.SqlExpressions.CaseWhenClause[] -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.CaseExpression
Public Function Case (operand As SqlExpression, ParamArray whenClauses As CaseWhenClause()) As CaseExpression

Parametreler

operand
SqlExpression

içinde whenClauseskarşılaştıracak Test bir ifade.

whenClauses
CaseWhenClause[]

Karşılaştırılıp elde edilen sonucun listesi CaseWhenClause .

Döndürülenler

SQL ağacında CASE deyimini temsil eden ifade.

Öznitelikler

Şunlara uygulanır

Case(IReadOnlyList<CaseWhenClause>, SqlExpression)

SQL ağacında case deyimini temsil eden yeni CaseExpression bir oluşturur.

public Microsoft.EntityFrameworkCore.Query.SqlExpressions.CaseExpression Case (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Query.SqlExpressions.CaseWhenClause> whenClauses, Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression elseResult);
public Microsoft.EntityFrameworkCore.Query.SqlExpressions.CaseExpression Case (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Query.SqlExpressions.CaseWhenClause> whenClauses, Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression? elseResult);
abstract member Case : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Query.SqlExpressions.CaseWhenClause> * Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.CaseExpression
Public Function Case (whenClauses As IReadOnlyList(Of CaseWhenClause), elseResult As SqlExpression) As CaseExpression

Parametreler

whenClauses
IReadOnlyList<CaseWhenClause>

Koşulu değerlendirmek CaseWhenClause ve sonucu almak için listesi.

elseResult
SqlExpression

Eşleşme yoksa whenClauses döndürülecek bir değer (varsa).

Döndürülenler

SQL ağacında CASE deyimini temsil eden ifade.

Şunlara uygulanır

Case(SqlExpression, IReadOnlyList<CaseWhenClause>, SqlExpression)

SQL ağacında case deyimini temsil eden yeni CaseExpression bir oluşturur.

public Microsoft.EntityFrameworkCore.Query.SqlExpressions.CaseExpression Case (Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression operand, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Query.SqlExpressions.CaseWhenClause> whenClauses, Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression elseResult);
public Microsoft.EntityFrameworkCore.Query.SqlExpressions.CaseExpression Case (Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression operand, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Query.SqlExpressions.CaseWhenClause> whenClauses, Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression? elseResult);
abstract member Case : 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 Function Case (operand As SqlExpression, whenClauses As IReadOnlyList(Of CaseWhenClause), elseResult As SqlExpression) As CaseExpression

Parametreler

operand
SqlExpression

içinde whenClauseskarşılaştıracak Test bir ifade.

whenClauses
IReadOnlyList<CaseWhenClause>

Karşılaştırılıp elde edilen sonucun listesi CaseWhenClause .

elseResult
SqlExpression

Eşleşme yoksa whenClauses döndürülecek bir değer (varsa).

Döndürülenler

SQL ağacında CASE deyimini temsil eden ifade.

Şunlara uygulanır