ReferenceReferenceBuilder<TEntity,TRelatedEntity>.HasPrincipalKey 메서드

정의

오버로드

HasPrincipalKey(String, String[])

이 관계가 대상으로 하는 고유한 속성을 구성합니다. 일반적으로 기본 키 이외의 속성을 주 속성으로 사용하려는 경우에만 이 메서드를 호출합니다. 지정된 속성이 아직 고유 제약 조건(또는 기본 키)이 아닌 경우 새 고유 제약 조건이 도입됩니다.

HasPrincipalKey(Type, String[])

이 관계가 대상으로 하는 고유한 속성을 구성합니다. 일반적으로 기본 키 이외의 속성을 주 속성으로 사용하려는 경우에만 이 메서드를 호출합니다. 지정된 속성이 아직 고유 제약 조건(또는 기본 키)이 아닌 경우 새 고유 제약 조건이 도입됩니다.

HasPrincipalKey<TPrincipalEntity>(Expression<Func<TPrincipalEntity,Object>>)

이 관계가 대상으로 하는 고유한 속성을 구성합니다. 일반적으로 기본 키 이외의 속성을 주 속성으로 사용하려는 경우에만 이 메서드를 호출합니다. 지정된 속성이 아직 고유 제약 조건(또는 기본 키)이 아닌 경우 새 고유 제약 조건이 도입됩니다.

HasPrincipalKey<TPrincipalEntity>(String[])

이 관계가 대상으로 하는 고유한 속성을 구성합니다. 일반적으로 기본 키 이외의 속성을 주 속성으로 사용하려는 경우에만 이 메서드를 호출합니다. 지정된 속성이 아직 고유 제약 조건(또는 기본 키)이 아닌 경우 새 고유 제약 조건이 도입됩니다.

HasPrincipalKey(String, String[])

이 관계가 대상으로 하는 고유한 속성을 구성합니다. 일반적으로 기본 키 이외의 속성을 주 속성으로 사용하려는 경우에만 이 메서드를 호출합니다. 지정된 속성이 아직 고유 제약 조건(또는 기본 키)이 아닌 경우 새 고유 제약 조건이 도입됩니다.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceReferenceBuilder<TEntity,TRelatedEntity> HasPrincipalKey (string principalEntityTypeName, params string[] keyPropertyNames);
override this.HasPrincipalKey : string * string[] -> Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceReferenceBuilder<'Entity, 'RelatedEntity (requires 'Entity : null and 'RelatedEntity : null)>
Public Overridable Function HasPrincipalKey (principalEntityTypeName As String, ParamArray keyPropertyNames As String()) As ReferenceReferenceBuilder(Of TEntity, TRelatedEntity)

매개 변수

principalEntityTypeName
String

이 관계의 보안 주체인 엔터티 형식의 이름(참조 키 속성이 있는 형식)입니다.

keyPropertyNames
String[]

참조 키 속성의 이름입니다.

반환

여러 구성 호출을 연결할 수 있도록 동일한 작성기가 instance.

설명

여러 보안 주체 키 속성을 지정하는 경우 보안 주체 키 속성의 순서는 주 엔터티 형식에서 기본 키 또는 고유 제약 조건 속성이 구성된 순서와 일치해야 합니다.

적용 대상

HasPrincipalKey(Type, String[])

이 관계가 대상으로 하는 고유한 속성을 구성합니다. 일반적으로 기본 키 이외의 속성을 주 속성으로 사용하려는 경우에만 이 메서드를 호출합니다. 지정된 속성이 아직 고유 제약 조건(또는 기본 키)이 아닌 경우 새 고유 제약 조건이 도입됩니다.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceReferenceBuilder<TEntity,TRelatedEntity> HasPrincipalKey (Type principalEntityType, params string[] keyPropertyNames);
override this.HasPrincipalKey : Type * string[] -> Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceReferenceBuilder<'Entity, 'RelatedEntity (requires 'Entity : null and 'RelatedEntity : null)>
Public Overridable Function HasPrincipalKey (principalEntityType As Type, ParamArray keyPropertyNames As String()) As ReferenceReferenceBuilder(Of TEntity, TRelatedEntity)

매개 변수

principalEntityType
Type

이 관계의 보안 주체인 엔터티 형식(참조 키 속성이 있는 형식)입니다.

keyPropertyNames
String[]

참조 키 속성의 이름입니다.

반환

여러 구성 호출을 연결할 수 있도록 동일한 작성기가 instance.

설명

여러 보안 주체 키 속성을 지정하는 경우 보안 주체 키 속성의 순서는 주 엔터티 형식에서 기본 키 또는 고유 제약 조건 속성이 구성된 순서와 일치해야 합니다.

적용 대상

HasPrincipalKey<TPrincipalEntity>(Expression<Func<TPrincipalEntity,Object>>)

이 관계가 대상으로 하는 고유한 속성을 구성합니다. 일반적으로 기본 키 이외의 속성을 주 속성으로 사용하려는 경우에만 이 메서드를 호출합니다. 지정된 속성이 아직 고유 제약 조건(또는 기본 키)이 아닌 경우 새 고유 제약 조건이 도입됩니다.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceReferenceBuilder<TEntity,TRelatedEntity> HasPrincipalKey<TPrincipalEntity> (System.Linq.Expressions.Expression<Func<TPrincipalEntity,object>> keyExpression);
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceReferenceBuilder<TEntity,TRelatedEntity> HasPrincipalKey<TPrincipalEntity> (System.Linq.Expressions.Expression<Func<TPrincipalEntity,object>> keyExpression) where TPrincipalEntity : class;
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceReferenceBuilder<TEntity,TRelatedEntity> HasPrincipalKey<TPrincipalEntity> (System.Linq.Expressions.Expression<Func<TPrincipalEntity,object?>> keyExpression) where TPrincipalEntity : class;
override this.HasPrincipalKey : System.Linq.Expressions.Expression<Func<'PrincipalEntity, obj>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceReferenceBuilder<'Entity, 'RelatedEntity (requires 'Entity : null and 'RelatedEntity : null)>
override this.HasPrincipalKey : System.Linq.Expressions.Expression<Func<'PrincipalEntity, obj>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceReferenceBuilder<'Entity, 'RelatedEntity (requires 'Entity : null and 'RelatedEntity : null)> (requires 'PrincipalEntity : null)
Public Overridable Function HasPrincipalKey(Of TPrincipalEntity) (keyExpression As Expression(Of Func(Of TPrincipalEntity, Object))) As ReferenceReferenceBuilder(Of TEntity, TRelatedEntity)
Public Overridable Function HasPrincipalKey(Of TPrincipalEntity As Class) (keyExpression As Expression(Of Func(Of TPrincipalEntity, Object))) As ReferenceReferenceBuilder(Of TEntity, TRelatedEntity)

형식 매개 변수

TPrincipalEntity

이 관계의 보안 주체인 엔터티 형식입니다. 즉, 참조 키 속성이 있는 형식입니다.

매개 변수

keyExpression
Expression<Func<TPrincipalEntity,Object>>

참조 키 속성을 나타내는 람다 식입니다t => t.Id.

보안 주체 키가 여러 속성으로 구성된 경우 속성(t => new { t.Id1, t.Id2 })을 포함하여 익명 형식을 지정합니다. 지정된 순서는 의 해당 속성 순서와 HasForeignKey<TDependentEntity>(Expression<Func<TDependentEntity,Object>>)일치해야 합니다.

반환

여러 구성 호출을 연결할 수 있도록 동일한 작성기가 instance.

설명

여러 보안 주체 키 속성을 지정하는 경우 보안 주체 키 속성의 순서는 주 엔터티 형식에서 기본 키 또는 고유 제약 조건 속성이 구성된 순서와 일치해야 합니다.

적용 대상

HasPrincipalKey<TPrincipalEntity>(String[])

이 관계가 대상으로 하는 고유한 속성을 구성합니다. 일반적으로 기본 키 이외의 속성을 주 속성으로 사용하려는 경우에만 이 메서드를 호출합니다. 지정된 속성이 아직 고유 제약 조건(또는 기본 키)이 아닌 경우 새 고유 제약 조건이 도입됩니다.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceReferenceBuilder<TEntity,TRelatedEntity> HasPrincipalKey<TPrincipalEntity> (params string[] keyPropertyNames) where TPrincipalEntity : class;
override this.HasPrincipalKey : string[] -> Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceReferenceBuilder<'Entity, 'RelatedEntity (requires 'Entity : null and 'RelatedEntity : null)> (requires 'PrincipalEntity : null)
Public Overridable Function HasPrincipalKey(Of TPrincipalEntity As Class) (ParamArray keyPropertyNames As String()) As ReferenceReferenceBuilder(Of TEntity, TRelatedEntity)

형식 매개 변수

TPrincipalEntity

이 관계의 보안 주체인 엔터티 형식(참조 키 속성이 있는 형식)입니다.

매개 변수

keyPropertyNames
String[]

참조 키 속성의 이름입니다.

반환

여러 구성 호출을 연결할 수 있도록 동일한 작성기가 instance.

적용 대상