次の方法で共有


DbExpressionBuilder.NewCollection メソッド

定義

オーバーロード

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 を含んでいます。.

要素が空であるか、共通の結果型が存在しない式が含まれています。

適用対象