InversePropertyAttributeConvention.ProcessEntityTypeAdded Method

Definition

Called for every navigation property that has an attribute after an entity type is added to the model.

public override void ProcessEntityTypeAdded (Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder entityTypeBuilder, System.Reflection.MemberInfo navigationMemberInfo, Type targetClrType, System.ComponentModel.DataAnnotations.Schema.InversePropertyAttribute attribute, Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder> context);
override this.ProcessEntityTypeAdded : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder * System.Reflection.MemberInfo * Type * System.ComponentModel.DataAnnotations.Schema.InversePropertyAttribute * Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder> -> unit
Public Overrides Sub ProcessEntityTypeAdded (entityTypeBuilder As IConventionEntityTypeBuilder, navigationMemberInfo As MemberInfo, targetClrType As Type, attribute As InversePropertyAttribute, context As IConventionContext(Of IConventionEntityTypeBuilder))

Parameters

entityTypeBuilder
IConventionEntityTypeBuilder

The builder for the entity type.

navigationMemberInfo
MemberInfo

The navigation member info.

targetClrType
Type

The CLR type of the target entity type

attribute
InversePropertyAttribute

The attribute.

context
IConventionContext<IConventionEntityTypeBuilder>

Additional information associated with convention execution.

Applies to