SqlServerOnDeleteConvention 클래스
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
자체 참조 건너뛰기 탐색을 위해 조인 엔터티 형식의 외식 키에 대한 OnDelete 동작을 구성하는 규칙
[System.Runtime.CompilerServices.Nullable(0)]
public class SqlServerOnDeleteConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.CascadeDeleteConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAnnotationChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.ISkipNavigationForeignKeyChangedConvention
public class SqlServerOnDeleteConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.CascadeDeleteConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.ISkipNavigationForeignKeyChangedConvention
public class SqlServerOnDeleteConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.CascadeDeleteConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAnnotationChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.ISkipNavigationForeignKeyChangedConvention
[<System.Runtime.CompilerServices.Nullable(0)>]
type SqlServerOnDeleteConvention = class
inherit CascadeDeleteConvention
interface ISkipNavigationForeignKeyChangedConvention
interface IConvention
interface IEntityTypeAnnotationChangedConvention
type SqlServerOnDeleteConvention = class
inherit CascadeDeleteConvention
interface ISkipNavigationForeignKeyChangedConvention
interface IConvention
type SqlServerOnDeleteConvention = class
inherit CascadeDeleteConvention
interface ISkipNavigationForeignKeyChangedConvention
interface IConvention
interface IEntityTypeAnnotationChangedConvention
Public Class SqlServerOnDeleteConvention
Inherits CascadeDeleteConvention
Implements IEntityTypeAnnotationChangedConvention, ISkipNavigationForeignKeyChangedConvention
Public Class SqlServerOnDeleteConvention
Inherits CascadeDeleteConvention
Implements ISkipNavigationForeignKeyChangedConvention
- 상속
- 특성
- 구현
설명
자세한 내용 및 예제는 모델 빌드 규칙 및 EF Core를 사용하여 SQL Server 및 Azure SQL 데이터베이스에 액세스하는 것을 참조하세요.
생성자
| 속성 | Description |
|---|---|
| SqlServerOnDeleteConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies) |
SqlServerOnDeleteConvention새 인스턴스를 생성합니다. |
속성
| 속성 | Description |
|---|---|
| Dependencies |
이 서비스에 대한 종속성입니다. (다음에서 상속됨 CascadeDeleteConvention) |
| RelationalDependencies |
이 서비스에 대한 관계형 공급자별 종속성입니다. |
메서드
| 속성 | Description |
|---|---|
| GetTargetDeleteBehavior(IConventionForeignKey) |
지정된 외래 키에 대해 설정할 삭제 동작을 반환합니다. |
| ProcessEntityTypeAnnotationChanged(IConventionEntityTypeBuilder, String, IConventionAnnotation, IConventionAnnotation, IConventionContext<IConventionAnnotation>) |
엔터티 형식에서 주석이 변경된 후 호출됩니다. |
| ProcessForeignKeyAdded(IConventionForeignKeyBuilder, IConventionContext<IConventionForeignKeyBuilder>) |
외래 키가 엔터티 형식에 추가된 후 호출됩니다. (다음에서 상속됨 CascadeDeleteConvention) |
| ProcessForeignKeyRequirednessChanged(IConventionForeignKeyBuilder, IConventionContext<Nullable<Boolean>>) |
외래 키에 대한 요구가 변경된 후 호출됩니다. (다음에서 상속됨 CascadeDeleteConvention) |
| ProcessSkipNavigationForeignKeyChanged(IConventionSkipNavigationBuilder, IConventionForeignKey, IConventionForeignKey, IConventionContext<IConventionForeignKey>) |
건너뛰기 탐색 반전이 변경된 후 호출됩니다. |