TypeMappingConvention Class

Definition

Caution

Use IModelRuntimeInitializer.Initialize instead.

A convention that creates and assigns store type mapping to entity properties.

public class TypeMappingConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizedConvention
public class TypeMappingConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention
[System.Obsolete("Use IModelRuntimeInitializer.Initialize instead.")]
public class TypeMappingConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention
type TypeMappingConvention = class
    interface IModelFinalizedConvention
    interface IConvention
type TypeMappingConvention = class
    interface IModelFinalizingConvention
    interface IConvention
[<System.Obsolete("Use IModelRuntimeInitializer.Initialize instead.")>]
type TypeMappingConvention = class
    interface IModelFinalizingConvention
    interface IConvention
Public Class TypeMappingConvention
Implements IModelFinalizedConvention
Public Class TypeMappingConvention
Implements IModelFinalizingConvention
Inheritance
TypeMappingConvention
Attributes
Implements

Remarks

See Model building conventions for more information.

Constructors

TypeMappingConvention(ProviderConventionSetBuilderDependencies)

Creates a new instance of TypeMappingConvention.

Properties

Dependencies

Dependencies for this service.

Methods

ProcessModelFinalized(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

Called after a model is finalized.

ProcessModelFinalizing(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

Called when a model is being finalized.

Applies to