Share via


ConstructorBindingConvention Class

Definition

A convention that binds entity type constructor parameters to existing properties and service properties based on their names:

  • [parameter name]
  • [pascal-cased parameter name]
  • _[parameter name]
  • _[pascal-cased parameter name]
  • m_[parameter name]
  • m_[pascal-cased parameter name]
public class ConstructorBindingConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizedConvention
public class ConstructorBindingConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention
type ConstructorBindingConvention = class
    interface IModelFinalizedConvention
    interface IConvention
type ConstructorBindingConvention = class
    interface IModelFinalizingConvention
    interface IConvention
Public Class ConstructorBindingConvention
Implements IModelFinalizedConvention
Public Class ConstructorBindingConvention
Implements IModelFinalizingConvention
Inheritance
ConstructorBindingConvention
Implements

Remarks

See Model building conventions for more information and examples.

Constructors

ConstructorBindingConvention(ProviderConventionSetBuilderDependencies)

Creates a new instance of ConstructorBindingConvention.

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