RelationalDbFunctionAttributeConvention Class

Definition

A convention that configures model function mappings based on public static methods on the context marked with DbFunctionAttribute.

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
type RelationalDbFunctionAttributeConvention = class
    interface IModelInitializedConvention
    interface IConvention
    interface IModelAnnotationChangedConvention
type RelationalDbFunctionAttributeConvention = class
    interface IModelInitializedConvention
    interface IConvention
    interface IModelFinalizingConvention
Public Class RelationalDbFunctionAttributeConvention
Implements IModelAnnotationChangedConvention, IModelInitializedConvention
Public Class RelationalDbFunctionAttributeConvention
Implements IModelFinalizingConvention, IModelInitializedConvention
Inheritance
RelationalDbFunctionAttributeConvention
Implements

Remarks

See Model building conventions and Database functions for more information and examples.

Constructors

RelationalDbFunctionAttributeConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies)

Creates a new instance of RelationalDbFunctionAttributeConvention.

Properties

Dependencies

Dependencies for this service.

RelationalDependencies

Relational provider-specific dependencies for this service.

Methods

ProcessDbFunctionAdded(IConventionDbFunctionBuilder, IConventionContext)

Called when an IConventionDbFunction is added to the model.

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

Called after an annotation is changed on an model.

ProcessModelFinalizing(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

Called when a model is being finalized.

ProcessModelInitialized(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

Called after a model is initialized.

Applies to