다음을 통해 공유


CosmosRuntimeModelConvention 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 CosmosRuntimeModelConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.RuntimeModelConvention
type CosmosRuntimeModelConvention = class
    inherit RuntimeModelConvention
Public Class CosmosRuntimeModelConvention
Inherits RuntimeModelConvention
Inheritance
CosmosRuntimeModelConvention

Remarks

See Model building conventions, and Accessing Azure Cosmos DB with EF Core for more information and examples.

Constructors

CosmosRuntimeModelConvention(ProviderConventionSetBuilderDependencies)

Creates a new instance of CosmosRuntimeModelConvention.

Properties

Dependencies

Dependencies for this service.

(Inherited from RuntimeModelConvention)

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 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)
ProcessForeignKeyAnnotations(Dictionary<String,Object>, IForeignKey, RuntimeForeignKey, Boolean)

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

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

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

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

(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.

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