DbExpressionBuilder.NewEmptyCollection(TypeUsage) Metodo

Definizione

Crea un nuovo DbNewInstanceExpression oggetto che costruisce una raccolta vuota del tipo di raccolta specificato.

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

Parametri

collectionType
TypeUsage

Metadati del tipo per la raccolta da creare.

Valori restituiti

Nuovo Oggetto DbNewInstanceExpression con il tipo di raccolta specificato e un elenco di argomenti vuoti.

Eccezioni

collectionType è null.

collectionType non è un tipo di raccolta.

Si applica a