Udostępnij za pośrednictwem


DbExpressionBuilder.NewEmptyCollection(TypeUsage) Metoda

Definicja

Tworzy nową DbNewInstanceExpression , która tworzy pustą kolekcję określonego typu kolekcji.

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

Metadane typu dla kolekcji do utworzenia

Zwraca

Nowa klasa DbNewInstanceExpression z określonym typem kolekcji i pustą listą Argumenty.

Wyjątki

collectionType ma wartość null.

collectionType nie jest typem kolekcji.

Dotyczy