Table of Contents

Class NpgsqlRuntimeModelConvention

Namespace
Npgsql.EntityFrameworkCore.PostgreSQL.Metadata.Conventions
Assembly
Npgsql.EntityFrameworkCore.PostgreSQL.dll

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

public class NpgsqlRuntimeModelConvention : RelationalRuntimeModelConvention, IModelFinalizedConvention, IConvention
Inheritance
NpgsqlRuntimeModelConvention
Implements
Inherited Members

Constructors

NpgsqlRuntimeModelConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies)

Creates a new instance of NpgsqlRuntimeModelConvention.

public NpgsqlRuntimeModelConvention(ProviderConventionSetBuilderDependencies dependencies, RelationalConventionSetBuilderDependencies relationalDependencies)

Parameters

dependencies ProviderConventionSetBuilderDependencies

Parameter object containing dependencies for this convention.

relationalDependencies RelationalConventionSetBuilderDependencies

Parameter object containing relational dependencies for this convention.

Methods

ProcessEntityTypeAnnotations(Dictionary<string, object?>, IEntityType, RuntimeEntityType, bool)

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

protected override void ProcessEntityTypeAnnotations(Dictionary<string, object?> annotations, IEntityType entityType, RuntimeEntityType runtimeEntityType, bool runtime)

Parameters

annotations Dictionary<string, object>

The annotations to be processed.

entityType IEntityType

The source entity type.

runtimeEntityType RuntimeEntityType

The target entity type that will contain the annotations.

runtime bool

Indicates whether the given annotations are runtime annotations.

ProcessIndexAnnotations(Dictionary<string, object?>, IIndex, RuntimeIndex, bool)

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

protected override void ProcessIndexAnnotations(Dictionary<string, object?> annotations, IIndex index, RuntimeIndex runtimeIndex, bool runtime)

Parameters

annotations Dictionary<string, object>

The annotations to be processed.

index IIndex

The source index.

runtimeIndex RuntimeIndex

The target index that will contain the annotations.

runtime bool

Indicates whether the given annotations are runtime annotations.

ProcessModelAnnotations(Dictionary<string, object?>, IModel, RuntimeModel, bool)

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

protected override void ProcessModelAnnotations(Dictionary<string, object?> annotations, IModel model, RuntimeModel runtimeModel, bool runtime)

Parameters

annotations Dictionary<string, object>

The annotations to be processed.

model IModel

The source model.

runtimeModel RuntimeModel

The target model that will contain the annotations.

runtime bool

Indicates whether the given annotations are runtime annotations.

ProcessPropertyAnnotations(Dictionary<string, object?>, IProperty, RuntimeProperty, bool)

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

protected override void ProcessPropertyAnnotations(Dictionary<string, object?> annotations, IProperty property, RuntimeProperty runtimeProperty, bool runtime)

Parameters

annotations Dictionary<string, object>

The annotations to be processed.

property IProperty

The source property.

runtimeProperty RuntimeProperty

The target property that will contain the annotations.

runtime bool

Indicates whether the given annotations are runtime annotations.