다음을 통해 공유


RuntimeModelConvention 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 RuntimeModelConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizedConvention
type RuntimeModelConvention = class
    interface IModelFinalizedConvention
    interface IConvention
Public Class RuntimeModelConvention
Implements IModelFinalizedConvention
Inheritance
RuntimeModelConvention
Derived
Implements

Remarks

See Model building conventions for more information and examples.

Constructors

RuntimeModelConvention(ProviderConventionSetBuilderDependencies)

Creates a new instance of RuntimeModelConvention.

Properties

Dependencies

Dependencies for this service.

Methods

Create(IModel)

Creates an optimized model base on the supplied one.

GetForeignKey(IForeignKey, RuntimeEntityType)

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

GetIndex(IIndex, RuntimeEntityType)

Gets the corresponding index in the read-optimized model.

GetKey(IKey, RuntimeEntityType)

Gets the corresponding key in the read-optimized model.

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

Updates the property 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.

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

Updates the element 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.

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

Updates the entity type 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.

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(IDictionary<String,Object>, IKey, RuntimeKey, Boolean)

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

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.

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

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

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

Updates the property 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.

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

Updates the skip navigation 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.

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

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

Applies to