Class NpgsqlRuntimeModelConvention
- 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
ProviderConventionSetBuilderDependenciesParameter object containing dependencies for this convention.
relationalDependencies
RelationalConventionSetBuilderDependenciesParameter 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
IEntityTypeThe source entity type.
runtimeEntityType
RuntimeEntityTypeThe target entity type that will contain the annotations.
runtime
boolIndicates 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
IIndexThe source index.
runtimeIndex
RuntimeIndexThe target index that will contain the annotations.
runtime
boolIndicates 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
IModelThe source model.
runtimeModel
RuntimeModelThe target model that will contain the annotations.
runtime
boolIndicates 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
IPropertyThe source property.
runtimeProperty
RuntimePropertyThe target property that will contain the annotations.
runtime
boolIndicates whether the given annotations are runtime annotations.