Share via


NonNullableReferencePropertyConvention Classe

Definição

Uma convenção que configura as propriedades de tipos não anuláveis conforme necessário.

public class NonNullableReferencePropertyConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.NonNullableConventionBase, Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyFieldChangedConvention
public class NonNullableReferencePropertyConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.NonNullableConventionBase, Microsoft.EntityFrameworkCore.Metadata.Conventions.IComplexPropertyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IComplexPropertyFieldChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyFieldChangedConvention
type NonNullableReferencePropertyConvention = class
    inherit NonNullableConventionBase
    interface IPropertyAddedConvention
    interface IConvention
    interface IPropertyFieldChangedConvention
type NonNullableReferencePropertyConvention = class
    inherit NonNullableConventionBase
    interface IPropertyAddedConvention
    interface IConvention
    interface IPropertyFieldChangedConvention
    interface IComplexPropertyAddedConvention
    interface IComplexPropertyFieldChangedConvention
Public Class NonNullableReferencePropertyConvention
Inherits NonNullableConventionBase
Implements IPropertyAddedConvention, IPropertyFieldChangedConvention
Public Class NonNullableReferencePropertyConvention
Inherits NonNullableConventionBase
Implements IComplexPropertyAddedConvention, IComplexPropertyFieldChangedConvention, IPropertyAddedConvention, IPropertyFieldChangedConvention
Herança
NonNullableReferencePropertyConvention
Implementações

Comentários

Consulte Convenções de criação de modelo para obter mais informações e exemplos.

Construtores

NonNullableReferencePropertyConvention(ProviderConventionSetBuilderDependencies)

Cria uma nova instância de NonNullableReferencePropertyConvention.

Propriedades

Dependencies

Dependências para esse serviço.

(Herdado de NonNullableConventionBase)

Métodos

IsNonNullableReferenceType(IConventionModelBuilder, MemberInfo)

Retorna um valor que indica se o tipo de membro é um tipo de referência não anulável.

(Herdado de NonNullableConventionBase)
ProcessComplexPropertyAdded(IConventionComplexPropertyBuilder, IConventionContext<IConventionComplexPropertyBuilder>)

Chamado depois que uma propriedade complexa é adicionada a um objeto semelhante a um tipo.

ProcessComplexPropertyFieldChanged(IConventionComplexPropertyBuilder, FieldInfo, FieldInfo, IConventionContext<FieldInfo>)

Chamado depois que o campo de backup de uma propriedade complexa é alterado.

ProcessModelFinalized(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

Chamado depois que um modelo é finalizado. Remove a anotação de estado em cache usada por essa convenção.

(Herdado de NonNullableConventionBase)
ProcessModelFinalizing(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

Chamado quando um modelo está sendo finalizado.

(Herdado de NonNullableConventionBase)
ProcessPropertyAdded(IConventionPropertyBuilder, IConventionContext<IConventionPropertyBuilder>)

Chamado depois que uma propriedade é adicionada ao tipo de entidade.

ProcessPropertyFieldChanged(IConventionPropertyBuilder, FieldInfo, FieldInfo, IConventionContext<FieldInfo>)

Chamado depois que o campo de backup de uma propriedade é alterado.

TryGetNullabilityInfo(IConventionModelBuilder, MemberInfo, NullabilityInfo)

Retorna um valor que indica se o tipo de membro é um tipo de referência não anulável.

(Herdado de NonNullableConventionBase)

Aplica-se a