BaseTypeDiscoveryConvention 클래스

정의

연결된 CLR 형식 계층 구조를 기반으로 이미 모델의 일부인 기본 및 파생 엔터티 형식을 찾는 규칙입니다.

public class BaseTypeDiscoveryConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.InheritanceDiscoveryConventionBase, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAddedConvention
public class BaseTypeDiscoveryConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.InheritanceDiscoveryConventionBase, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyOwnershipChangedConvention
public class BaseTypeDiscoveryConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.InheritanceDiscoveryConventionBase, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyRemovedConvention
public class BaseTypeDiscoveryConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyRemovedConvention
type BaseTypeDiscoveryConvention = class
    inherit InheritanceDiscoveryConventionBase
    interface IEntityTypeAddedConvention
    interface IConvention
type BaseTypeDiscoveryConvention = class
    inherit InheritanceDiscoveryConventionBase
    interface IEntityTypeAddedConvention
    interface IConvention
    interface IForeignKeyOwnershipChangedConvention
type BaseTypeDiscoveryConvention = class
    inherit InheritanceDiscoveryConventionBase
    interface IEntityTypeAddedConvention
    interface IConvention
    interface IForeignKeyRemovedConvention
type BaseTypeDiscoveryConvention = class
    interface IEntityTypeAddedConvention
    interface IConvention
    interface IForeignKeyRemovedConvention
Public Class BaseTypeDiscoveryConvention
Inherits InheritanceDiscoveryConventionBase
Implements IEntityTypeAddedConvention
Public Class BaseTypeDiscoveryConvention
Inherits InheritanceDiscoveryConventionBase
Implements IEntityTypeAddedConvention, IForeignKeyOwnershipChangedConvention
Public Class BaseTypeDiscoveryConvention
Inherits InheritanceDiscoveryConventionBase
Implements IEntityTypeAddedConvention, IForeignKeyRemovedConvention
Public Class BaseTypeDiscoveryConvention
Implements IEntityTypeAddedConvention, IForeignKeyRemovedConvention
상속
BaseTypeDiscoveryConvention
상속
BaseTypeDiscoveryConvention
구현

설명

자세한 내용 및 예제는 모델 빌드 규칙을 참조하세요.

생성자

BaseTypeDiscoveryConvention(ProviderConventionSetBuilderDependencies)

BaseTypeDiscoveryConvention의 새 인스턴스를 만듭니다.

속성

Dependencies

이 서비스에 대한 종속성입니다.

Dependencies

이 서비스에 대한 종속성입니다.

(다음에서 상속됨 InheritanceDiscoveryConventionBase)

메서드

FindClosestBaseType(IConventionEntityType)

모델에서 지정된 엔터티 형식의 연결된 CLR 형식이 파생되고 CLR 계층 구조에서 가장 가까운 CLR 형식과 연결된 엔터티 형식을 찾습니다.

(다음에서 상속됨 InheritanceDiscoveryConventionBase)
ProcessEntityTypeAdded(IConventionEntityTypeBuilder, IConventionContext<IConventionEntityTypeBuilder>)

엔터티 형식이 모델에 추가된 후 호출됩니다.

ProcessForeignKeyOwnershipChanged(IConventionForeignKeyBuilder, IConventionContext<Nullable<Boolean>>)

외래 키의 소유권 값이 변경된 후 호출됩니다.

ProcessForeignKeyRemoved(IConventionEntityTypeBuilder, IConventionForeignKey, IConventionContext<IConventionForeignKey>)

외래 키가 제거된 후 호출됩니다.

적용 대상