Condividi tramite


InversePropertyAttributeConvention.ProcessEntityTypeAdded Metodo

Definizione

Chiamato per ogni proprietà di spostamento con un attributo dopo l'aggiunta di un tipo di entità al modello.

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))

Parametri

entityTypeBuilder
IConventionEntityTypeBuilder

Generatore per il tipo di entità.

navigationMemberInfo
MemberInfo

Informazioni sui membri di spostamento.

targetClrType
Type

Tipo CLR del tipo di entità di destinazione

attribute
InversePropertyAttribute

Attributo.

context
IConventionContext<IConventionEntityTypeBuilder>

Informazioni aggiuntive associate all'esecuzione della convenzione.

Si applica a