언어

RelationalDbFunctionAttributeConvention 클래스

정의

로 표시된 컨텍스트에서 퍼블릭 정적 메서드를 기반으로 모델 함수 매핑을 구성하는 규칙입니다 DbFunctionAttribute.

[System.Runtime.CompilerServices.Nullable(0)]
public class RelationalDbFunctionAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelInitializedConvention
public class RelationalDbFunctionAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelAnnotationChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelInitializedConvention
public class RelationalDbFunctionAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelInitializedConvention
[<System.Runtime.CompilerServices.Nullable(0)>]
type RelationalDbFunctionAttributeConvention = class
    interface IModelInitializedConvention
    interface IConvention
    interface IModelFinalizingConvention
type RelationalDbFunctionAttributeConvention = class
    interface IModelInitializedConvention
    interface IConvention
    interface IModelAnnotationChangedConvention
type RelationalDbFunctionAttributeConvention = class
    interface IModelInitializedConvention
    interface IConvention
    interface IModelFinalizingConvention
Public Class RelationalDbFunctionAttributeConvention
Implements IModelFinalizingConvention, IModelInitializedConvention
Public Class RelationalDbFunctionAttributeConvention
Implements IModelAnnotationChangedConvention, IModelInitializedConvention
상속
RelationalDbFunctionAttributeConvention
특성
구현

설명

자세한 내용 및 예제는 모델 빌드 규칙 및 데이터베이스 함수 를 참조하세요.

생성자

속성 Description
RelationalDbFunctionAttributeConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies)

RelationalDbFunctionAttributeConvention새 인스턴스를 생성합니다.

속성

속성 Description
Dependencies

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

RelationalDependencies

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

메서드

속성 Description
ProcessDbFunctionAdded(IConventionDbFunctionBuilder, IConventionContext)

모델에 추가되면 IConventionDbFunction 호출됩니다.

ProcessModelAnnotationChanged(IConventionModelBuilder, String, IConventionAnnotation, IConventionAnnotation, IConventionContext<IConventionAnnotation>)

모델에서 주석이 변경된 후 호출됩니다.

ProcessModelFinalizing(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

모델을 완료할 때 호출됩니다.

ProcessModelInitialized(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

모델을 초기화한 후 호출됩니다.

적용 대상