Sdílet prostřednictvím


DbExpressionBuilder.NewEmptyCollection(TypeUsage) Metoda

Definice

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

public static System.Data.Entity.Core.Common.CommandTrees.DbNewInstanceExpression NewEmptyCollection (this System.Data.Entity.Core.Metadata.Edm.TypeUsage collectionType);
static member NewEmptyCollection : System.Data.Entity.Core.Metadata.Edm.TypeUsage -> System.Data.Entity.Core.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 seznamem Argumenty.

Výjimky

collectionType má hodnotu null.

collectionType není typ kolekce.

Platí pro