KeyDiscoveryConvention 클래스
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
이름을 기반으로 엔터티 형식의 기본 키 속성을 찾는 규칙이며 대/소문자를 무시합니다.
- Id
- [엔터티 이름] 자료
public class KeyDiscoveryConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeBaseTypeChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyOwnershipChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyPropertiesChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyRemovedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyUniquenessChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IKeyRemovedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyFieldChangedConvention
public class KeyDiscoveryConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeBaseTypeChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyOwnershipChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyPropertiesChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyRemovedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyUniquenessChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IKeyRemovedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.ISkipNavigationForeignKeyChangedConvention
public class KeyDiscoveryConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeBaseTypeChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeMemberIgnoredConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyOwnershipChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyPropertiesChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyRemovedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyUniquenessChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IKeyRemovedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.ISkipNavigationForeignKeyChangedConvention
type KeyDiscoveryConvention = class
interface IEntityTypeAddedConvention
interface IConvention
interface IPropertyAddedConvention
interface IKeyRemovedConvention
interface IEntityTypeBaseTypeChangedConvention
interface IPropertyFieldChangedConvention
interface IForeignKeyAddedConvention
interface IForeignKeyRemovedConvention
interface IForeignKeyPropertiesChangedConvention
interface IForeignKeyUniquenessChangedConvention
interface IForeignKeyOwnershipChangedConvention
type KeyDiscoveryConvention = class
interface IEntityTypeAddedConvention
interface IConvention
interface IPropertyAddedConvention
interface IKeyRemovedConvention
interface IEntityTypeBaseTypeChangedConvention
interface IForeignKeyAddedConvention
interface IForeignKeyRemovedConvention
interface IForeignKeyPropertiesChangedConvention
interface IForeignKeyUniquenessChangedConvention
interface IForeignKeyOwnershipChangedConvention
interface ISkipNavigationForeignKeyChangedConvention
type KeyDiscoveryConvention = class
interface IEntityTypeAddedConvention
interface IConvention
interface IPropertyAddedConvention
interface IKeyRemovedConvention
interface IEntityTypeBaseTypeChangedConvention
interface IEntityTypeMemberIgnoredConvention
interface IForeignKeyAddedConvention
interface IForeignKeyRemovedConvention
interface IForeignKeyPropertiesChangedConvention
interface IForeignKeyUniquenessChangedConvention
interface IForeignKeyOwnershipChangedConvention
interface ISkipNavigationForeignKeyChangedConvention
Public Class KeyDiscoveryConvention
Implements IEntityTypeAddedConvention, IEntityTypeBaseTypeChangedConvention, IForeignKeyAddedConvention, IForeignKeyOwnershipChangedConvention, IForeignKeyPropertiesChangedConvention, IForeignKeyRemovedConvention, IForeignKeyUniquenessChangedConvention, IKeyRemovedConvention, IPropertyAddedConvention, IPropertyFieldChangedConvention
Public Class KeyDiscoveryConvention
Implements IEntityTypeAddedConvention, IEntityTypeBaseTypeChangedConvention, IForeignKeyAddedConvention, IForeignKeyOwnershipChangedConvention, IForeignKeyPropertiesChangedConvention, IForeignKeyRemovedConvention, IForeignKeyUniquenessChangedConvention, IKeyRemovedConvention, IPropertyAddedConvention, ISkipNavigationForeignKeyChangedConvention
Public Class KeyDiscoveryConvention
Implements IEntityTypeAddedConvention, IEntityTypeBaseTypeChangedConvention, IEntityTypeMemberIgnoredConvention, IForeignKeyAddedConvention, IForeignKeyOwnershipChangedConvention, IForeignKeyPropertiesChangedConvention, IForeignKeyRemovedConvention, IForeignKeyUniquenessChangedConvention, IKeyRemovedConvention, IPropertyAddedConvention, ISkipNavigationForeignKeyChangedConvention
- 상속
-
KeyDiscoveryConvention
- 파생
- 구현
-
IConvention IEntityTypeAddedConvention IEntityTypeBaseTypeChangedConvention IForeignKeyAddedConvention IForeignKeyOwnershipChangedConvention IForeignKeyPropertiesChangedConvention IForeignKeyRemovedConvention IForeignKeyUniquenessChangedConvention IKeyRemovedConvention IPropertyAddedConvention IPropertyFieldChangedConvention ISkipNavigationForeignKeyChangedConvention IEntityTypeMemberIgnoredConvention
설명
엔터티 형식이 참조 탐색 속성을 통해 소유되는 경우 해당 외래 키 속성이 사용됩니다.
엔터티 형식이 컬렉션 탐색 속성을 통해 소유되는 경우 위의 명명 규칙과 일치하는 추가 속성이 있는 외래 키 속성을 사용하여 복합 기본 키가 구성됩니다.
자세한 내용 및 예제는 모델 빌드 규칙을 참조하세요.
생성자
KeyDiscoveryConvention(ProviderConventionSetBuilderDependencies) |
KeyDiscoveryConvention의 새 인스턴스를 만듭니다. |
속성
Dependencies |
이 서비스에 대한 종속성입니다. |
메서드
적용 대상
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Entity Framework