IConventionForeignKeyBuilder.HasPrincipalKey Yöntem

Tanım

Aşırı Yüklemeler

HasPrincipalKey(IReadOnlyList<IConventionProperty>, Boolean)

Bu ilişkinin hedeflediği özellikleri yapılandırır.

HasPrincipalKey(IReadOnlyList<String>, Boolean)

Bu ilişkinin hedeflediği özellikleri yapılandırır.

HasPrincipalKey(IReadOnlyList<IConventionProperty>, Boolean)

Bu ilişkinin hedeflediği özellikleri yapılandırır.

public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionForeignKeyBuilder HasPrincipalKey (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> properties, bool fromDataAnnotation = false);
public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionForeignKeyBuilder? HasPrincipalKey (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty>? properties, bool fromDataAnnotation = false);
abstract member HasPrincipalKey : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionForeignKeyBuilder
Public Function HasPrincipalKey (properties As IReadOnlyList(Of IConventionProperty), Optional fromDataAnnotation As Boolean = false) As IConventionForeignKeyBuilder

Parametreler

properties
IReadOnlyList<IConventionProperty>

Bu ilişkinin hedeflenecek özellikleri.

fromDataAnnotation
Boolean

Yapılandırmanın bir veri ek açıklaması kullanılarak mı belirtilmediğini belirtir.

Döndürülenler

IConventionForeignKeyBuilder

Bu ilişki için özellikler hedef olarak yapılandırıldıysa aynı Oluşturucu örneği, null tersi durumda.

Şunlara uygulanır

HasPrincipalKey(IReadOnlyList<String>, Boolean)

Bu ilişkinin hedeflediği özellikleri yapılandırır.

public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionForeignKeyBuilder HasPrincipalKey (System.Collections.Generic.IReadOnlyList<string> propertyNames, bool fromDataAnnotation = false);
public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionForeignKeyBuilder? HasPrincipalKey (System.Collections.Generic.IReadOnlyList<string>? propertyNames, bool fromDataAnnotation = false);
abstract member HasPrincipalKey : System.Collections.Generic.IReadOnlyList<string> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionForeignKeyBuilder
Public Function HasPrincipalKey (propertyNames As IReadOnlyList(Of String), Optional fromDataAnnotation As Boolean = false) As IConventionForeignKeyBuilder

Parametreler

propertyNames
IReadOnlyList<String>

Bu ilişkinin hedeflenecek özellikleri.

fromDataAnnotation
Boolean

Yapılandırmanın bir veri ek açıklaması kullanılarak mı belirtilmediğini belirtir.

Döndürülenler

IConventionForeignKeyBuilder

Bu ilişki için özellikler hedef olarak yapılandırıldıysa aynı Oluşturucu örneği, null tersi durumda.

Şunlara uygulanır