다음을 통해 공유


SqlServerValueGenerationConvention 클래스

정의

외래 키의 일부가 아닌 기본 키의 일부인 속성에서 로 저장소 값 생성 OnAdd 을 구성하는 규칙이 데이터베이스 기본값을 갖도록 구성되었거나 를 사용하도록 SqlServerValueGenerationStrategy구성되었습니다. 또한 속성을 계산 열로 구성된 것처럼 OnAddOrUpdate 구성합니다.

public class SqlServerValueGenerationConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.RelationalValueGenerationConvention
type SqlServerValueGenerationConvention = class
    inherit RelationalValueGenerationConvention
Public Class SqlServerValueGenerationConvention
Inherits RelationalValueGenerationConvention
상속

설명

자세한 내용 및 예제는 모델 빌드 규칙EF Core를 사용하여 SQL Server 및 Azure SQL 데이터베이스 액세스를 참조하세요.

생성자

SqlServerValueGenerationConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies)

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

속성

Dependencies

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

(다음에서 상속됨 ValueGenerationConvention)
RelationalDependencies

이 서비스에 대한 관계형 공급자별 종속성입니다.

(다음에서 상속됨 RelationalValueGenerationConvention)

메서드

GetValueGenerated(IConventionProperty)

지정된 속성에 대해 설정할 저장소 값 생성 전략을 반환합니다.

GetValueGenerated(IProperty)

지정된 속성에 대해 설정할 저장소 값 생성 전략을 반환합니다.

GetValueGenerated(IProperty, StoreObjectIdentifier)

지정된 속성에 대해 설정할 저장소 값 생성 전략을 반환합니다.

GetValueGenerated(IReadOnlyProperty, StoreObjectIdentifier)

지정된 속성에 대해 설정할 저장소 값 생성 전략을 반환합니다.

MappingStrategyAllowsValueGeneration(IConventionProperty, String)

매핑 전략 및 속성이 규칙에 따라 값 생성을 허용하는지 여부를 확인합니다.

(다음에서 상속됨 RelationalValueGenerationConvention)
ProcessEntityTypeAnnotationChanged(IConventionEntityTypeBuilder, String, IConventionAnnotation, IConventionAnnotation, IConventionContext<IConventionAnnotation>)

엔터티에서 주석이 변경된 후 호출됩니다.

ProcessEntityTypeAnnotationChanged(IConventionEntityTypeBuilder, String, IConventionAnnotation, IConventionAnnotation, IConventionContext<IConventionAnnotation>)

엔터티 형식에서 주석이 변경된 후 호출됩니다.

(다음에서 상속됨 RelationalValueGenerationConvention)
ProcessEntityTypeBaseTypeChanged(IConventionEntityTypeBuilder, IConventionEntityType, IConventionEntityType, IConventionContext<IConventionEntityType>)

엔터티 형식의 기본 형식이 변경된 후 호출됩니다.

(다음에서 상속됨 ValueGenerationConvention)
ProcessEntityTypePrimaryKeyChanged(IConventionEntityTypeBuilder, IConventionKey, IConventionKey, IConventionContext<IConventionKey>)

엔터티 형식의 기본 키가 변경된 후 호출됩니다.

(다음에서 상속됨 ValueGenerationConvention)
ProcessForeignKeyAdded(IConventionForeignKeyBuilder, IConventionContext<IConventionForeignKeyBuilder>)

외래 키가 엔터티 형식에 추가된 후 호출됩니다.

(다음에서 상속됨 ValueGenerationConvention)
ProcessForeignKeyAdded(IConventionRelationshipBuilder, IConventionContext<IConventionRelationshipBuilder>)

외래 키가 엔터티 형식에 추가된 후 호출됩니다.

(다음에서 상속됨 ValueGenerationConvention)
ProcessForeignKeyOwnershipChanged(IConventionForeignKeyBuilder, IConventionContext<Nullable<Boolean>>)

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

(다음에서 상속됨 ValueGenerationConvention)
ProcessForeignKeyPropertiesChanged(IConventionForeignKeyBuilder, IReadOnlyList<IConventionProperty>, IConventionKey, IConventionContext<IReadOnlyList<IConventionProperty>>)

외래 키 속성 또는 보안 주체 키가 변경된 후 호출됩니다.

(다음에서 상속됨 ValueGenerationConvention)
ProcessForeignKeyPropertiesChanged(IConventionRelationshipBuilder, IReadOnlyList<IConventionProperty>, IConventionKey, IConventionContext<IConventionRelationshipBuilder>)

외래 키 속성 또는 보안 주체 키가 변경된 후 호출됩니다.

(다음에서 상속됨 ValueGenerationConvention)
ProcessForeignKeyRemoved(IConventionEntityTypeBuilder, IConventionForeignKey, IConventionContext<IConventionForeignKey>)

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

(다음에서 상속됨 ValueGenerationConvention)
ProcessPropertyAnnotationChanged(IConventionPropertyBuilder, String, IConventionAnnotation, IConventionAnnotation, IConventionContext<IConventionAnnotation>)

속성에서 주석이 변경된 후 호출됩니다.

적용 대상