Aracılığıyla paylaş


RuntimeEntityType.AddNavigation Yöntem

Tanım

Aşırı Yüklemeler

AddNavigation(String, RuntimeForeignKey, Boolean, Type, PropertyInfo, FieldInfo, PropertyAccessMode, Boolean)

Bu varlık türüne yeni bir gezinti özelliği ekler.

AddNavigation(String, RuntimeForeignKey, Boolean, Type, PropertyInfo, FieldInfo, PropertyAccessMode, Boolean, Boolean)

Bu varlık türüne yeni bir gezinti özelliği ekler.

AddNavigation(String, RuntimeForeignKey, Boolean, Type, PropertyInfo, FieldInfo, PropertyAccessMode, Boolean)

Bu varlık türüne yeni bir gezinti özelliği ekler.

public virtual Microsoft.EntityFrameworkCore.Metadata.RuntimeNavigation AddNavigation (string name, Microsoft.EntityFrameworkCore.Metadata.RuntimeForeignKey foreignKey, bool onDependent, Type clrType, System.Reflection.PropertyInfo? propertyInfo = default, System.Reflection.FieldInfo? fieldInfo = default, Microsoft.EntityFrameworkCore.PropertyAccessMode propertyAccessMode = Microsoft.EntityFrameworkCore.PropertyAccessMode.PreferField, bool eagerLoaded = false);
abstract member AddNavigation : string * Microsoft.EntityFrameworkCore.Metadata.RuntimeForeignKey * bool * Type * System.Reflection.PropertyInfo * System.Reflection.FieldInfo * Microsoft.EntityFrameworkCore.PropertyAccessMode * bool -> Microsoft.EntityFrameworkCore.Metadata.RuntimeNavigation
override this.AddNavigation : string * Microsoft.EntityFrameworkCore.Metadata.RuntimeForeignKey * bool * Type * System.Reflection.PropertyInfo * System.Reflection.FieldInfo * Microsoft.EntityFrameworkCore.PropertyAccessMode * bool -> Microsoft.EntityFrameworkCore.Metadata.RuntimeNavigation
Public Overridable Function AddNavigation (name As String, foreignKey As RuntimeForeignKey, onDependent As Boolean, clrType As Type, Optional propertyInfo As PropertyInfo = Nothing, Optional fieldInfo As FieldInfo = Nothing, Optional propertyAccessMode As PropertyAccessMode = Microsoft.EntityFrameworkCore.PropertyAccessMode.PreferField, Optional eagerLoaded As Boolean = false) As RuntimeNavigation

Parametreler

name
String

Eklenecek atla gezinti özelliğinin adı.

foreignKey
RuntimeForeignKey

Bu gezinti özelliğinin gideceği ilişkiyi tanımlayan yabancı anahtar.

onDependent
Boolean

Gezinti özelliğinin temel alınan yabancı anahtarın bağımlı tarafında tanımlanıp tanımlanmadığını gösteren değer.

clrType
Type

Bu gezintide bulunan değerin türü.

propertyInfo
PropertyInfo

Karşılık gelen CLR özelliği veya null gölge gezinti için.

fieldInfo
FieldInfo

Karşılık gelen CLR alanı veya null gölge gezinti için.

propertyAccessMode
PropertyAccessMode

PropertyAccessMode Bu gezinti için kullanılan.

eagerLoaded
Boolean

Bu gezintinin varsayılan olarak istekli yüklenip yüklenmeyeceğini belirten bir değer.

Döndürülenler

Yeni oluşturulan gezinti özelliği.

Şunlara uygulanır

AddNavigation(String, RuntimeForeignKey, Boolean, Type, PropertyInfo, FieldInfo, PropertyAccessMode, Boolean, Boolean)

Bu varlık türüne yeni bir gezinti özelliği ekler.

public virtual Microsoft.EntityFrameworkCore.Metadata.RuntimeNavigation AddNavigation (string name, Microsoft.EntityFrameworkCore.Metadata.RuntimeForeignKey foreignKey, bool onDependent, Type clrType, System.Reflection.PropertyInfo? propertyInfo = default, System.Reflection.FieldInfo? fieldInfo = default, Microsoft.EntityFrameworkCore.PropertyAccessMode propertyAccessMode = Microsoft.EntityFrameworkCore.PropertyAccessMode.PreferField, bool eagerLoaded = false, bool lazyLoadingEnabled = true);
abstract member AddNavigation : string * Microsoft.EntityFrameworkCore.Metadata.RuntimeForeignKey * bool * Type * System.Reflection.PropertyInfo * System.Reflection.FieldInfo * Microsoft.EntityFrameworkCore.PropertyAccessMode * bool * bool -> Microsoft.EntityFrameworkCore.Metadata.RuntimeNavigation
override this.AddNavigation : string * Microsoft.EntityFrameworkCore.Metadata.RuntimeForeignKey * bool * Type * System.Reflection.PropertyInfo * System.Reflection.FieldInfo * Microsoft.EntityFrameworkCore.PropertyAccessMode * bool * bool -> Microsoft.EntityFrameworkCore.Metadata.RuntimeNavigation
Public Overridable Function AddNavigation (name As String, foreignKey As RuntimeForeignKey, onDependent As Boolean, clrType As Type, Optional propertyInfo As PropertyInfo = Nothing, Optional fieldInfo As FieldInfo = Nothing, Optional propertyAccessMode As PropertyAccessMode = Microsoft.EntityFrameworkCore.PropertyAccessMode.PreferField, Optional eagerLoaded As Boolean = false, Optional lazyLoadingEnabled As Boolean = true) As RuntimeNavigation

Parametreler

name
String

Eklenecek gezinti özelliğinin adı.

foreignKey
RuntimeForeignKey

Bu gezinti özelliğinin gideceği ilişkiyi tanımlayan yabancı anahtar.

onDependent
Boolean

Gezinti özelliğinin temel alınan yabancı anahtarın bağımlı tarafında tanımlanıp tanımlanmadığını gösteren değer.

clrType
Type

Bu gezintide bulunan değerin türü.

propertyInfo
PropertyInfo

Karşılık gelen CLR özelliği veya null gölge gezinti için.

fieldInfo
FieldInfo

Karşılık gelen CLR alanı veya null gölge gezinti için.

propertyAccessMode
PropertyAccessMode

PropertyAccessMode Bu gezinti için kullanılan.

eagerLoaded
Boolean

Bu gezintinin varsayılan olarak istekli yüklenip yüklenmeyeceğini belirten bir değer.

lazyLoadingEnabled
Boolean

Bu gezintinin gecikmeli yükleme için etkinleştirilip etkinleştirilmeydiğini gösteren bir değer.

Döndürülenler

Yeni oluşturulan gezinti özelliği.

Şunlara uygulanır