NotMappedEntityTypeAttributeConvention Class

Definition

A convention that ignores entity types that have the NotMappedAttribute.

public class NotMappedEntityTypeAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.EntityTypeAttributeConventionBase<System.ComponentModel.DataAnnotations.Schema.NotMappedAttribute>
type NotMappedEntityTypeAttributeConvention = class
    inherit EntityTypeAttributeConventionBase<NotMappedAttribute>
Public Class NotMappedEntityTypeAttributeConvention
Inherits EntityTypeAttributeConventionBase(Of NotMappedAttribute)
Inheritance
NotMappedEntityTypeAttributeConvention

Remarks

See Model building conventions for more information and examples.

Constructors

NotMappedEntityTypeAttributeConvention(ProviderConventionSetBuilderDependencies)

Creates a new instance of NotMappedEntityTypeAttributeConvention.

Properties

Dependencies

Dependencies for this service.

(Inherited from EntityTypeAttributeConventionBase<TAttribute>)

Methods

ProcessEntityTypeAdded(IConventionEntityTypeBuilder, IConventionContext<IConventionEntityTypeBuilder>)

Called after an entity type is added to the model.

(Inherited from EntityTypeAttributeConventionBase<TAttribute>)
ProcessEntityTypeAdded(IConventionEntityTypeBuilder, NotMappedAttribute, IConventionContext<IConventionEntityTypeBuilder>)

Called after an entity type is added to the model if it has an attribute.

ProcessEntityTypeAdded(IConventionEntityTypeBuilder, TAttribute, IConventionContext<IConventionEntityTypeBuilder>)

Called after an entity type is added to the model if it has an attribute.

(Inherited from EntityTypeAttributeConventionBase<TAttribute>)

Applies to