Bahasa

EntityEntry<TEntity>.Collection Metode

Definisi

Overload

Nama Deskripsi
Collection<TProperty>(INavigationBase)

Menyediakan akses ke informasi pelacakan perubahan dan pemuatan untuk properti navigasi koleksi yang mengaitkan entitas ini ke kumpulan entitas lain.

Collection<TProperty>(Expression<Func<TEntity,IEnumerable<TProperty>>>)

Menyediakan akses ke informasi pelacakan perubahan dan pemuatan untuk properti navigasi koleksi yang mengaitkan entitas ini ke kumpulan entitas lain.

Collection<TProperty>(String)

Menyediakan akses ke informasi pelacakan perubahan dan pemuatan untuk properti navigasi koleksi yang mengaitkan entitas ini ke kumpulan entitas lain.

Collection<TProperty>(INavigationBase)

Sumber:
EntityEntry`.cs
Sumber:
EntityEntry`.cs
Sumber:
EntityEntry`.cs
Sumber:
EntityEntry`.cs
Sumber:
EntityEntry`.cs

Menyediakan akses ke informasi pelacakan perubahan dan pemuatan untuk properti navigasi koleksi yang mengaitkan entitas ini ke kumpulan entitas lain.

public virtual Microsoft.EntityFrameworkCore.ChangeTracking.CollectionEntry<TEntity,TProperty> Collection<TProperty>(Microsoft.EntityFrameworkCore.Metadata.INavigationBase navigation) where TProperty : class;
override this.Collection : Microsoft.EntityFrameworkCore.Metadata.INavigationBase -> Microsoft.EntityFrameworkCore.ChangeTracking.CollectionEntry<'Entity, 'Property (requires 'Entity : null and 'Property : null)> (requires 'Property : null)
Public Overridable Function Collection(Of TProperty As Class) (navigation As INavigationBase) As CollectionEntry(Of TEntity, TProperty)

Jenis parameter

TProperty

Parameter

navigation
INavigationBase

Navigasi koleksi.

Mengembalikan

CollectionEntry<TEntity,TProperty>

Objek yang mengekspos informasi dan operasi pelacakan perubahan untuk properti navigasi yang diberikan.

Keterangan

Lihat Mengakses entitas terlacak di EF Core dan Mengubah kunci dan navigasi asing untuk informasi dan contoh selengkapnya.

Berlaku untuk

Collection<TProperty>(Expression<Func<TEntity,IEnumerable<TProperty>>>)

Sumber:
EntityEntry`.cs
Sumber:
EntityEntry`.cs
Sumber:
EntityEntry`.cs
Sumber:
EntityEntry`.cs
Sumber:
EntityEntry`.cs
Sumber:
EntityEntry`.cs
Sumber:
EntityEntry`.cs
Sumber:
EntityEntry`.cs
Sumber:
EntityEntry`.cs
Sumber:
EntityEntry`.cs
Sumber:
EntityEntry`.cs

Menyediakan akses ke informasi pelacakan perubahan dan pemuatan untuk properti navigasi koleksi yang mengaitkan entitas ini ke kumpulan entitas lain.

public virtual Microsoft.EntityFrameworkCore.ChangeTracking.CollectionEntry<TEntity,TProperty> Collection<TProperty>(System.Linq.Expressions.Expression<Func<TEntity,System.Collections.Generic.IEnumerable<TProperty>>> propertyExpression) where TProperty : class;
override this.Collection : System.Linq.Expressions.Expression<Func<'Entity, seq<'Property>>> -> Microsoft.EntityFrameworkCore.ChangeTracking.CollectionEntry<'Entity, 'Property (requires 'Entity : null and 'Property : null)> (requires 'Property : null)
Public Overridable Function Collection(Of TProperty As Class) (propertyExpression As Expression(Of Func(Of TEntity, IEnumerable(Of TProperty)))) As CollectionEntry(Of TEntity, TProperty)

Jenis parameter

TProperty

Parameter

propertyExpression
Expression<Func<TEntity,IEnumerable<TProperty>>>

Ekspresi lambda yang mewakili navigasi koleksi untuk mengakses informasi dan operasi.

Mengembalikan

CollectionEntry<TEntity,TProperty>

Objek yang mengekspos informasi dan operasi pelacakan perubahan untuk properti navigasi yang diberikan.

Keterangan

Lihat Mengakses entitas terlacak di EF Core dan Mengubah kunci dan navigasi asing untuk informasi dan contoh selengkapnya.

Berlaku untuk

Collection<TProperty>(String)

Sumber:
EntityEntry`.cs
Sumber:
EntityEntry`.cs
Sumber:
EntityEntry`.cs
Sumber:
EntityEntry`.cs
Sumber:
EntityEntry`.cs
Sumber:
EntityEntry`.cs
Sumber:
EntityEntry`.cs
Sumber:
EntityEntry`.cs
Sumber:
EntityEntry`.cs
Sumber:
EntityEntry`.cs
Sumber:
EntityEntry`.cs

Menyediakan akses ke informasi pelacakan perubahan dan pemuatan untuk properti navigasi koleksi yang mengaitkan entitas ini ke kumpulan entitas lain.

public virtual Microsoft.EntityFrameworkCore.ChangeTracking.CollectionEntry<TEntity,TProperty> Collection<TProperty>(string propertyName) where TProperty : class;
override this.Collection : string -> Microsoft.EntityFrameworkCore.ChangeTracking.CollectionEntry<'Entity, 'Property (requires 'Entity : null and 'Property : null)> (requires 'Property : null)
Public Overridable Function Collection(Of TProperty As Class) (propertyName As String) As CollectionEntry(Of TEntity, TProperty)

Jenis parameter

TProperty

Parameter

propertyName
String

Nama properti navigasi.

Mengembalikan

CollectionEntry<TEntity,TProperty>

Objek yang mengekspos informasi dan operasi pelacakan perubahan untuk properti navigasi yang diberikan.

Keterangan

Lihat Mengakses entitas terlacak di EF Core dan Mengubah kunci dan navigasi asing untuk informasi dan contoh selengkapnya.

Berlaku untuk