Partilhar via


RelationalRuntimeModelConvention Class

Definition

A convention that creates an optimized copy of the mutable model. This convention is typically implemented by database providers to update provider annotations when creating a read-only model.

public class RelationalRuntimeModelConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.RuntimeModelConvention
type RelationalRuntimeModelConvention = class
    inherit RuntimeModelConvention
Public Class RelationalRuntimeModelConvention
Inherits RuntimeModelConvention
Inheritance
RelationalRuntimeModelConvention
Derived

Remarks

See Model building conventions for more information and examples.

Constructors

RelationalRuntimeModelConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies)

Creates a new instance of RelationalRuntimeModelConvention.

Properties

Dependencies

Dependencies for this service.

(Inherited from RuntimeModelConvention)
RelationalDependencies

Relational provider-specific dependencies for this service.

Methods

Create(IModel)

Creates an optimized model base on the supplied one.

(Inherited from RuntimeModelConvention)
GetForeignKey(IForeignKey, RuntimeEntityType)

Gets the corresponding foreign key in the read-optimized model.

(Inherited from RuntimeModelConvention)
GetIndex(IIndex, RuntimeEntityType)

Gets the corresponding index in the read-optimized model.

(Inherited from RuntimeModelConvention)
GetKey(IKey, RuntimeEntityType)

Gets the corresponding key in the read-optimized model.

(Inherited from RuntimeModelConvention)
ProcessComplexPropertyAnnotations(Dictionary<String,Object>, IComplexProperty, RuntimeComplexProperty, Boolean)

Updates the property annotations that will be set on the read-only object.

(Inherited from RuntimeModelConvention)
ProcessComplexTypeAnnotations(Dictionary<String,Object>, IComplexType, RuntimeComplexType, Boolean)

Updates the complex type annotations that will be set on the read-only object.

ProcessComplexTypeAnnotations(Dictionary<String,Object>, IComplexType, RuntimeComplexType, Boolean)

Updates the complex type annotations that will be set on the read-only object.

(Inherited from RuntimeModelConvention)
ProcessElementTypeAnnotations(Dictionary<String,Object>, IElementType, RuntimeElementType, Boolean)

Updates the element type annotations that will be set on the read-only object.

(Inherited from RuntimeModelConvention)
ProcessEntityTypeAnnotations(Dictionary<String,Object>, IEntityType, RuntimeEntityType, Boolean)

Updates the entity type annotations that will be set on the read-only object.

ProcessEntityTypeAnnotations(Dictionary<String,Object>, IEntityType, RuntimeEntityType, Boolean)

Updates the entity type annotations that will be set on the read-only object.

(Inherited from RuntimeModelConvention)
ProcessEntityTypeAnnotations(IDictionary<String,Object>, IEntityType, RuntimeEntityType, Boolean)

Updates the entity type annotations that will be set on the read-only object.

ProcessEntityTypeAnnotations(IDictionary<String,Object>, IEntityType, RuntimeEntityType, Boolean)

Updates the entity type annotations that will be set on the read-only object.

(Inherited from RuntimeModelConvention)
ProcessEntityTypeMappingFragmentAnnotations(Dictionary<String,Object>, IEntityTypeMappingFragment, RuntimeEntityTypeMappingFragment, Boolean)

Updates the relational property overrides annotations that will be set on the read-only object.

ProcessForeignKeyAnnotations(Dictionary<String,Object>, IForeignKey, RuntimeForeignKey, Boolean)

Updates the foreign key annotations that will be set on the read-only object.

ProcessFunctionAnnotations(Dictionary<String,Object>, IDbFunction, RuntimeDbFunction, Boolean)

Updates the function annotations that will be set on the read-only object.

ProcessFunctionParameterAnnotations(Dictionary<String,Object>, IDbFunctionParameter, RuntimeDbFunctionParameter, Boolean)

Updates the function parameter annotations that will be set on the read-only object.

ProcessIndexAnnotations(Dictionary<String,Object>, IIndex, RuntimeIndex, Boolean)

Updates the index annotations that will be set on the read-only object.

ProcessKeyAnnotations(Dictionary<String,Object>, IKey, RuntimeKey, Boolean)

Updates the key annotations that will be set on the read-only object.

ProcessKeyAnnotations(Dictionary<String,Object>, IKey, RuntimeKey, Boolean)

Updates the key annotations that will be set on the read-only object.

(Inherited from RuntimeModelConvention)
ProcessKeyAnnotations(IDictionary<String,Object>, IKey, RuntimeKey, Boolean)

Updates the key annotations that will be set on the read-only object.

ProcessKeyAnnotations(IDictionary<String,Object>, IKey, RuntimeKey, Boolean)

Updates the key annotations that will be set on the read-only object.

(Inherited from RuntimeModelConvention)
ProcessModelAnnotations(Dictionary<String,Object>, IModel, RuntimeModel, Boolean)

Updates the model annotations that will be set on the read-only object.

ProcessModelFinalized(IModel)

Called after a model is finalized and can no longer be mutated.

(Inherited from RuntimeModelConvention)
ProcessNavigationAnnotations(Dictionary<String,Object>, INavigation, RuntimeNavigation, Boolean)

Updates the navigation annotations that will be set on the read-only object.

(Inherited from RuntimeModelConvention)
ProcessPropertyAnnotations(Dictionary<String,Object>, IProperty, RuntimeProperty, Boolean)

Updates the property annotations that will be set on the read-only object.

ProcessPropertyOverridesAnnotations(Dictionary<String,Object>, IRelationalPropertyOverrides, RuntimeRelationalPropertyOverrides, Boolean)

Updates the relational property overrides annotations that will be set on the read-only object.

ProcessPropertyOverridesAnnotations(Dictionary<String,Object>, IRelationalPropertyOverrides, RuntimeRelationalPropertyOverrides, Boolean)

Updates the relational property overrides annotations that will be set on the read-only object.

ProcessSequenceAnnotations(Dictionary<String,Object>, ISequence, RuntimeSequence, Boolean)

Updates the sequence annotations that will be set on the read-only object.

ProcessServicePropertyAnnotations(Dictionary<String,Object>, IServiceProperty, RuntimeServiceProperty, Boolean)

Updates the service property annotations that will be set on the read-only object.

(Inherited from RuntimeModelConvention)
ProcessSkipNavigationAnnotations(Dictionary<String,Object>, ISkipNavigation, RuntimeSkipNavigation, Boolean)

Updates the skip navigation annotations that will be set on the read-only object.

(Inherited from RuntimeModelConvention)
ProcessStoredProcedureAnnotations(Dictionary<String,Object>, IStoredProcedure, RuntimeStoredProcedure, Boolean)

Updates the stored procedure annotations that will be set on the read-only object.

ProcessStoredProcedureParameterAnnotations(Dictionary<String,Object>, IStoredProcedureParameter, RuntimeStoredProcedureParameter, Boolean)

Updates the stored procedure parameter annotations that will be set on the read-only object.

ProcessStoredProcedureResultColumnAnnotations(Dictionary<String,Object>, IStoredProcedureResultColumn, RuntimeStoredProcedureResultColumn, Boolean)

Updates the stored procedure result column annotations that will be set on the read-only object.

ProcessTriggerAnnotations(Dictionary<String,Object>, ITrigger, RuntimeTrigger, Boolean)

Updates the trigger annotations that will be set on the read-only object.

(Inherited from RuntimeModelConvention)
ProcessTypeMappingConfigurationAnnotations(Dictionary<String,Object>, ITypeMappingConfiguration, RuntimeTypeMappingConfiguration, Boolean)

Updates the property annotations that will be set on the read-only object.

(Inherited from RuntimeModelConvention)

Applies to