DbExpressionBuilder.NewEmptyCollection(TypeUsage) Metode

Definisi

Membuat baru DbNewInstanceExpression yang membuat koleksi kosong dari jenis koleksi yang ditentukan.

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

Parameter

collectionType
TypeUsage

Jenis metadata untuk koleksi yang akan dibuat.

Mengembalikan

DbNewInstanceExpression baru dengan jenis koleksi yang ditentukan dan daftar argumen kosong.

Pengecualian

collectionType adalah null.

collectionType bukan jenis koleksi.

Berlaku untuk