NonNullableReferencePropertyConvention Sınıf

Tanım

Null değer atanamayan türlerin özelliklerini gerektiği gibi yapılandıran bir kural.

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
Devralma
NonNullableReferencePropertyConvention
Uygulamalar

Açıklamalar

Daha fazla bilgi ve örnek için bkz. Model oluşturma kuralları .

Oluşturucular

NonNullableReferencePropertyConvention(ProviderConventionSetBuilderDependencies)

NonNullableReferencePropertyConvention öğesinin yeni bir örneğini oluşturur.

Özellikler

Dependencies

Bu hizmet için bağımlılıklar.

(Devralındığı yer: NonNullableConventionBase)

Yöntemler

IsNonNullableReferenceType(IConventionModelBuilder, MemberInfo)

Üye türünün null atanamaz bir başvuru türü olup olmadığını belirten bir değer döndürür.

(Devralındığı yer: NonNullableConventionBase)
ProcessComplexPropertyAdded(IConventionComplexPropertyBuilder, IConventionContext<IConventionComplexPropertyBuilder>)

Karmaşık bir özellik tür benzeri bir nesneye eklendikten sonra çağrılır.

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

Karmaşık bir özelliğin yedekleme alanı değiştirildikten sonra çağrılır.

ProcessModelFinalized(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

Model sonlandırıldıktan sonra çağrılır. Bu kural tarafından kullanılan önbelleğe alınmış durum ek açıklamasını kaldırır.

(Devralındığı yer: NonNullableConventionBase)
ProcessModelFinalizing(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

Model sonlandırılırken çağrılır.

(Devralındığı yer: NonNullableConventionBase)
ProcessPropertyAdded(IConventionPropertyBuilder, IConventionContext<IConventionPropertyBuilder>)

Varlık türüne bir özellik eklendikten sonra çağrılır.

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

Bir özelliğin yedekleme alanı değiştirildikten sonra çağrılır.

TryGetNullabilityInfo(IConventionModelBuilder, MemberInfo, NullabilityInfo)

Üye türünün null atanamaz bir başvuru türü olup olmadığını belirten bir değer döndürür.

(Devralındığı yer: NonNullableConventionBase)

Şunlara uygulanır