次の方法で共有


EntityEntry<TEntity>.Collection メソッド

定義

オーバーロード

Collection<TProperty>(INavigationBase)

このエンティティを別のエンティティのコレクションに関連付けるコレクション ナビゲーション プロパティの変更の追跡と読み込み情報へのアクセスを提供します。

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

このエンティティを別のエンティティのコレクションに関連付けるコレクション ナビゲーション プロパティの変更の追跡と読み込み情報へのアクセスを提供します。

Collection<TProperty>(String)

このエンティティを別のエンティティのコレクションに関連付けるコレクション ナビゲーション プロパティの変更の追跡と読み込み情報へのアクセスを提供します。

Collection<TProperty>(INavigationBase)

このエンティティを別のエンティティのコレクションに関連付けるコレクション ナビゲーション プロパティの変更の追跡と読み込み情報へのアクセスを提供します。

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)

型パラメーター

TProperty

パラメーター

navigation
INavigationBase

コレクション ナビゲーション。

戻り値

CollectionEntry<TEntity,TProperty>

指定したナビゲーション プロパティの変更追跡情報と操作を公開する オブジェクト。

注釈

詳細と例については、「 EF Core での追跡対象エンティティへのアクセス 」および 「外部キーとナビゲーションの変更 」を参照してください。

適用対象

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

このエンティティを別のエンティティのコレクションに関連付けるコレクション ナビゲーション プロパティの変更の追跡と読み込み情報へのアクセスを提供します。

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)

型パラメーター

TProperty

パラメーター

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

情報と操作にアクセスするためのコレクション ナビゲーションを表すラムダ式。

戻り値

CollectionEntry<TEntity,TProperty>

指定したナビゲーション プロパティの変更追跡情報と操作を公開する オブジェクト。

注釈

詳細と例については、「 EF Core での追跡対象エンティティへのアクセス 」および 「外部キーとナビゲーションの変更 」を参照してください。

適用対象

Collection<TProperty>(String)

このエンティティを別のエンティティのコレクションに関連付けるコレクション ナビゲーション プロパティの変更の追跡と読み込み情報へのアクセスを提供します。

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)

型パラメーター

TProperty

パラメーター

propertyName
String

ナビゲーション プロパティの名前。

戻り値

CollectionEntry<TEntity,TProperty>

指定したナビゲーション プロパティの変更追跡情報と操作を公開する オブジェクト。

注釈

詳細と例については、「 EF Core での追跡対象エンティティへのアクセス 」および 「外部キーとナビゲーションの変更 」を参照してください。

適用対象