RelationalDbFunctionAttributeConvention Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A convention that configures model function mappings based on public static methods on the context marked with 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
- Inheritance
-
RelationalDbFunctionAttributeConvention
- Attributes
- Implements
Remarks
See Model building conventions and Database functions for more information and examples.
Constructors
| Name | Description |
|---|---|
| RelationalDbFunctionAttributeConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies) |
Creates a new instance of RelationalDbFunctionAttributeConvention. |
Properties
| Name | Description |
|---|---|
| Dependencies |
Dependencies for this service. |
| RelationalDependencies |
Relational provider-specific dependencies for this service. |
Methods
| Name | Description |
|---|---|
| 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. |