Aracılığıyla paylaş


DbExpressionBuilder.NewCollection Yöntem

Tanım

Belirtilen öğeleri içeren bir koleksiyon oluşturan yeni DbNewInstanceExpression bir oluşturur.

Aşırı Yüklemeler

NewCollection(IEnumerable<DbExpression>)

Belirtilen öğeleri içeren bir koleksiyon oluşturan yeni DbNewInstanceExpression bir oluşturur. Koleksiyonun türü, öğelerin ortak türünü temel alır. Ortak öğe türü yoksa bir özel durum oluşturulur.

NewCollection(DbExpression[])

Belirtilen öğeleri içeren bir koleksiyon oluşturan yeni DbNewInstanceExpression bir oluşturur. Koleksiyonun türü, öğelerin ortak türünü temel alır. Ortak öğe türü yoksa bir özel durum oluşturulur.

NewCollection(IEnumerable<DbExpression>)

Belirtilen öğeleri içeren bir koleksiyon oluşturan yeni DbNewInstanceExpression bir oluşturur. Koleksiyonun türü, öğelerin ortak türünü temel alır. Ortak öğe türü yoksa bir özel durum oluşturulur.

public:
 static System::Data::Common::CommandTrees::DbNewInstanceExpression ^ NewCollection(System::Collections::Generic::IEnumerable<System::Data::Common::CommandTrees::DbExpression ^> ^ elements);
public static System.Data.Common.CommandTrees.DbNewInstanceExpression NewCollection (System.Collections.Generic.IEnumerable<System.Data.Common.CommandTrees.DbExpression> elements);
static member NewCollection : seq<System.Data.Common.CommandTrees.DbExpression> -> System.Data.Common.CommandTrees.DbNewInstanceExpression
Public Function NewCollection (elements As IEnumerable(Of DbExpression)) As DbNewInstanceExpression

Parametreler

elements
IEnumerable<DbExpression>

Koleksiyonun öğelerini sağlayan ifadelerin listesi.

Döndürülenler

Belirtilen koleksiyon türüne ve bağımsız değişkenlere sahip yeni bir DbNewInstanceExpression.

Özel durumlar

elements null veya null içeriyor.

elements boş veya ortak sonuç türü olmayan ifadeler içeriyor.

Şunlara uygulanır

NewCollection(DbExpression[])

Belirtilen öğeleri içeren bir koleksiyon oluşturan yeni DbNewInstanceExpression bir oluşturur. Koleksiyonun türü, öğelerin ortak türünü temel alır. Ortak öğe türü yoksa bir özel durum oluşturulur.

public:
 static System::Data::Common::CommandTrees::DbNewInstanceExpression ^ NewCollection(... cli::array <System::Data::Common::CommandTrees::DbExpression ^> ^ elements);
public static System.Data.Common.CommandTrees.DbNewInstanceExpression NewCollection (params System.Data.Common.CommandTrees.DbExpression[] elements);
static member NewCollection : System.Data.Common.CommandTrees.DbExpression[] -> System.Data.Common.CommandTrees.DbNewInstanceExpression
Public Function NewCollection (ParamArray elements As DbExpression()) As DbNewInstanceExpression

Parametreler

elements
DbExpression[]

Koleksiyonun öğelerini sağlayan ifadelerin listesi.

Döndürülenler

Belirtilen koleksiyon türüne ve bağımsız değişkenlere sahip yeni bir DbNewInstanceExpression.

Özel durumlar

elements null veya null içeriyor.

elements boş veya ortak sonuç türü olmayan ifadeler içeriyor.

Şunlara uygulanır