DbExpressionBuilder.NewEmptyCollection(TypeUsage) Metod

Definition

Skapar en ny DbNewInstanceExpression som konstruerar en tom samling av den angivna samlingstypen.

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

Parametrar

collectionType
TypeUsage

Typmetadata för samlingen som ska skapas.

Returer

En ny DbNewInstanceExpression med den angivna samlingstypen och en tom argumentlista.

Undantag

collectionType är null.

collectionType är inte en samlingstyp.

Gäller för