DbExpressionBuilder.Case メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
新しい DbCaseExpressionを作成します。
public:
static System::Data::Common::CommandTrees::DbCaseExpression ^ Case(System::Collections::Generic::IEnumerable<System::Data::Common::CommandTrees::DbExpression ^> ^ whenExpressions, System::Collections::Generic::IEnumerable<System::Data::Common::CommandTrees::DbExpression ^> ^ thenExpressions, System::Data::Common::CommandTrees::DbExpression ^ elseExpression);
public static System.Data.Common.CommandTrees.DbCaseExpression Case(System.Collections.Generic.IEnumerable<System.Data.Common.CommandTrees.DbExpression> whenExpressions, System.Collections.Generic.IEnumerable<System.Data.Common.CommandTrees.DbExpression> thenExpressions, System.Data.Common.CommandTrees.DbExpression elseExpression);
static member Case : seq<System.Data.Common.CommandTrees.DbExpression> * seq<System.Data.Common.CommandTrees.DbExpression> * System.Data.Common.CommandTrees.DbExpression -> System.Data.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 または thenExpressions が null または null を含むか、 elseExpression が null です。
whenExpressions または thenExpressions が空であるか、ブール以外の結果型を持つ式が含まれている whenExpressions 、または thenExpressions および elseExpression内のすべての式に共通の結果型が存在しません。