Share via


NotMappedMemberAttributeConvention Class

Definition

A convention that ignores members on entity types that have the NotMappedAttribute.

public class NotMappedMemberAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAddedConvention
public class NotMappedMemberAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IComplexPropertyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAddedConvention
type NotMappedMemberAttributeConvention = class
    interface IEntityTypeAddedConvention
    interface IConvention
type NotMappedMemberAttributeConvention = class
    interface IEntityTypeAddedConvention
    interface IConvention
    interface IComplexPropertyAddedConvention
Public Class NotMappedMemberAttributeConvention
Implements IEntityTypeAddedConvention
Public Class NotMappedMemberAttributeConvention
Implements IComplexPropertyAddedConvention, IEntityTypeAddedConvention
Inheritance
NotMappedMemberAttributeConvention
Implements

Remarks

See Model building conventions for more information and examples.

Constructors

NotMappedMemberAttributeConvention(ProviderConventionSetBuilderDependencies)

Creates a new instance of NotMappedMemberAttributeConvention.

Properties

Dependencies

Dependencies for this service.

Methods

ProcessComplexPropertyAdded(IConventionComplexPropertyBuilder, IConventionContext<IConventionComplexPropertyBuilder>)

Called after a complex property is added to a type-like object.

ProcessEntityTypeAdded(IConventionEntityTypeBuilder, IConventionContext<IConventionEntityTypeBuilder>)

Called after an entity type is added to the model.

ShouldIgnore(MemberInfo)

Returns a value indicating whether the given CLR member should be ignored.

Applies to