DbExpressionBuilder.NewEmptyCollection(TypeUsage) Metodo

Definizione

Crea un nuovo oggetto DbNewInstanceExpression che costruisce un insieme vuoto del tipo di insieme 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.

Restituisce

Nuovo DbNewInstanceExpression con il tipo di raccolta specificato e un elenco Arguments vuoto.

Eccezioni

collectionType è null.

collectionType non è un tipo di insieme.

Si applica a