Compartilhar via


SqlServerRuntimeModelConvention Class

Definition

A convention that creates an optimized copy of the mutable model.

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

Remarks

See Model building conventions, and Accessing SQL Server and Azure SQL databases with EF Core for more information and examples.

Constructors

SqlServerRuntimeModelConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies)

Creates a new instance of SqlServerRuntimeModelConvention.

Properties

Dependencies

Dependencies for this service.

(Inherited from RuntimeModelConvention)
RelationalDependencies

Relational provider-specific dependencies for this service.

(Inherited from RelationalRuntimeModelConvention)

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.

(Inherited from RelationalRuntimeModelConvention)
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 RelationalRuntimeModelConvention)
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 RelationalRuntimeModelConvention)
ProcessEntityTypeMappingFragmentAnnotations(Dictionary<String,Object>, IEntityTypeMappingFragment, RuntimeEntityTypeMappingFragment, Boolean)

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

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

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

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

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

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

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

(Inherited from RelationalRuntimeModelConvention)
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 RelationalRuntimeModelConvention)
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 RelationalRuntimeModelConvention)
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.

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

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

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

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

(Inherited from RelationalRuntimeModelConvention)
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.

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

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

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

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

(Inherited from RelationalRuntimeModelConvention)
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