DbExpressionBuilder.Case メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
新しい DbCaseExpression を作成します。
public static System.Data.Entity.Core.Common.CommandTrees.DbCaseExpression Case(System.Collections.Generic.IEnumerable<System.Data.Entity.Core.Common.CommandTrees.DbExpression> whenExpressions, System.Collections.Generic.IEnumerable<System.Data.Entity.Core.Common.CommandTrees.DbExpression> thenExpressions, System.Data.Entity.Core.Common.CommandTrees.DbExpression elseExpression);
static member Case : seq<System.Data.Entity.Core.Common.CommandTrees.DbExpression> * seq<System.Data.Entity.Core.Common.CommandTrees.DbExpression> * System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.Common.CommandTrees.DbCaseExpression
Public Function Case (whenExpressions As IEnumerable(Of DbExpression), thenExpressions As IEnumerable(Of DbExpression), elseExpression As DbExpression) As DbCaseExpression
パラメーター
- whenExpressions
- IEnumerable<DbExpression>
各ケースの条件を提供する式のリスト。
- thenExpressions
- IEnumerable<DbExpression>
各ケースの結果を提供する式のリスト。
- elseExpression
- DbExpression
いずれのケースにも一致しなかった場合の結果を定義する式。
戻り値
指定されたケースと既定の結果を持つ新しい DbCaseExpression。
例外
whenExpressions or thenExpressions is null or contains null, or elseExpression is null.
whenExpressions or thenExpressions is empty or whenExpressions contains an expression with a non Boolean result type, or no common result type exists for all expressions in thenExpressions and elseExpression.