Прочетете на английски Редактиране

Споделяне чрез


DbExpressionBuilder.NewEmptyCollection(TypeUsage) Method

Definition

Creates a new DbNewInstanceExpression that constructs an empty collection of the specified collection type.

C#
public static System.Data.Common.CommandTrees.DbNewInstanceExpression NewEmptyCollection(this System.Data.Metadata.Edm.TypeUsage collectionType);

Parameters

collectionType
TypeUsage

The type metadata for the collection to create.

Returns

A new DbNewInstanceExpression with the specified collection type and an empty arguments list.

Exceptions

collectionType is null.

collectionType is not a collection type.

Applies to

Продукт Версии
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1