Language

EntityEntry<TEntity>.Reference メソッド

定義

オーバーロード

Name 説明
Reference<TProperty>(INavigationBase)

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

Reference<TProperty>(Expression<Func<TEntity,TProperty>>)

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

Reference<TProperty>(String)

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

Reference<TProperty>(INavigationBase)

ソース:
EntityEntry`.cs
ソース:
EntityEntry`.cs
ソース:
EntityEntry`.cs
ソース:
EntityEntry`.cs
ソース:
EntityEntry`.cs

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

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

型パラメーター

TProperty

パラメーター

navigation
INavigationBase

参照ナビゲーション。

戻り値

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

注釈

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

適用対象

Reference<TProperty>(Expression<Func<TEntity,TProperty>>)

ソース:
EntityEntry`.cs
ソース:
EntityEntry`.cs
ソース:
EntityEntry`.cs
ソース:
EntityEntry`.cs
ソース:
EntityEntry`.cs
ソース:
EntityEntry`.cs
ソース:
EntityEntry`.cs
ソース:
EntityEntry`.cs
ソース:
EntityEntry`.cs
ソース:
EntityEntry`.cs
ソース:
EntityEntry`.cs

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

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

型パラメーター

TProperty

パラメーター

propertyExpression
Expression<Func<TEntity,TProperty>>

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

戻り値

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

注釈

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

適用対象

Reference<TProperty>(String)

ソース:
EntityEntry`.cs
ソース:
EntityEntry`.cs
ソース:
EntityEntry`.cs
ソース:
EntityEntry`.cs
ソース:
EntityEntry`.cs
ソース:
EntityEntry`.cs
ソース:
EntityEntry`.cs
ソース:
EntityEntry`.cs
ソース:
EntityEntry`.cs
ソース:
EntityEntry`.cs
ソース:
EntityEntry`.cs

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

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

型パラメーター

TProperty

パラメーター

propertyName
String

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

戻り値

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

注釈

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

適用対象