Aracılığıyla paylaş


DbExpressionBuilder.NewEmptyCollection(TypeUsage) Yöntem

Tanım

Belirtilen koleksiyon türünde boş bir koleksiyon oluşturan yeni DbNewInstanceExpression bir oluşturur.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbNewInstanceExpression ^ NewEmptyCollection(System::Data::Metadata::Edm::TypeUsage ^ collectionType);
public static System.Data.Common.CommandTrees.DbNewInstanceExpression NewEmptyCollection (this System.Data.Metadata.Edm.TypeUsage collectionType);
static member NewEmptyCollection : System.Data.Metadata.Edm.TypeUsage -> System.Data.Common.CommandTrees.DbNewInstanceExpression
<Extension()>
Public Function NewEmptyCollection (collectionType As TypeUsage) As DbNewInstanceExpression

Parametreler

collectionType
TypeUsage

Oluşturulacak koleksiyonun tür meta verileri.

Döndürülenler

Belirtilen koleksiyon türüne ve boş Arguments listeye sahip yeni bir DbNewInstanceExpression.

Özel durumlar

collectionType null değeridir.

collectionType bir koleksiyon türü değildir.

Şunlara uygulanır