DbExpressionBuilder.NewCollection メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
NewCollection(IEnumerable<DbExpression>) |
指定した要素を含むコレクションを構築する新しい DbNewInstanceExpression を作成します。 コレクションの型は、要素の共通の型に基づきます。 要素の共通の型が存在しない場合は例外がスローされます。 |
NewCollection(DbExpression[]) |
指定した要素を含むコレクションを構築する新しい DbNewInstanceExpression を作成します。 コレクションの型は、要素の共通の型に基づきます。 要素の共通の型が存在しない場合は例外がスローされます。 |
NewCollection(IEnumerable<DbExpression>)
指定した要素を含むコレクションを構築する新しい DbNewInstanceExpression を作成します。 コレクションの型は、要素の共通の型に基づきます。 要素の共通の型が存在しない場合は例外がスローされます。
public static System.Data.Entity.Core.Common.CommandTrees.DbNewInstanceExpression NewCollection (System.Collections.Generic.IEnumerable<System.Data.Entity.Core.Common.CommandTrees.DbExpression> elements);
static member NewCollection : seq<System.Data.Entity.Core.Common.CommandTrees.DbExpression> -> System.Data.Entity.Core.Common.CommandTrees.DbNewInstanceExpression
Public Function NewCollection (elements As IEnumerable(Of DbExpression)) As DbNewInstanceExpression
パラメーター
- elements
- IEnumerable<DbExpression>
コレクションの要素を提供する式のリスト。
戻り値
指定されたコレクション型と引数を持つ新しい DbNewInstanceExpression。
例外
要素が null であるか、null を含んでいます。
要素が空であるか、共通の結果型が存在しない式が含まれています。
適用対象
NewCollection(DbExpression[])
指定した要素を含むコレクションを構築する新しい DbNewInstanceExpression を作成します。 コレクションの型は、要素の共通の型に基づきます。 要素の共通の型が存在しない場合は例外がスローされます。
public static System.Data.Entity.Core.Common.CommandTrees.DbNewInstanceExpression NewCollection (params System.Data.Entity.Core.Common.CommandTrees.DbExpression[] elements);
static member NewCollection : System.Data.Entity.Core.Common.CommandTrees.DbExpression[] -> System.Data.Entity.Core.Common.CommandTrees.DbNewInstanceExpression
Public Function NewCollection (ParamArray elements As DbExpression()) As DbNewInstanceExpression
パラメーター
- elements
- DbExpression[]
コレクションの要素を提供する式のリスト。
戻り値
指定されたコレクション型と引数を持つ新しい DbNewInstanceExpression。
例外
要素が null であるか、null を含んでいます。.
要素が空であるか、共通の結果型が存在しない式が含まれています。
適用対象
Entity Framework