Share via


DbExpressionBuilder.NewEmptyCollection(TypeUsage) Metoda

Definice

Vytvoří novou DbNewInstanceExpression , která vytvoří prázdnou kolekci zadaného typu kolekce.

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

Parametry

collectionType
TypeUsage

Metadata typu pro kolekci, která se má vytvořit.

Návraty

Nový DbNewInstanceExpression se zadaným typem kolekce a prázdným Arguments seznamem.

Výjimky

collectionType je null.

collectionType není typ kolekce.

Platí pro