Dil

NonNullableConventionBase Sınıf

Tanım

Üye türünün null atanamaz bir başvuru türü olup olmadığına bağlı olarak model yönlerini yapılandıran kurallar için temel tür.

[System.Runtime.CompilerServices.Nullable(0)]
public abstract class NonNullableConventionBase
public abstract class NonNullableConventionBase : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizedConvention
public abstract class NonNullableConventionBase : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention
[System.Runtime.CompilerServices.Nullable(0)]
public abstract class NonNullableConventionBase : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention
[<System.Runtime.CompilerServices.Nullable(0)>]
type NonNullableConventionBase = class
type NonNullableConventionBase = class
    interface IModelFinalizedConvention
    interface IConvention
type NonNullableConventionBase = class
    interface IModelFinalizingConvention
    interface IConvention
[<System.Runtime.CompilerServices.Nullable(0)>]
type NonNullableConventionBase = class
    interface IModelFinalizingConvention
    interface IConvention
Public MustInherit Class NonNullableConventionBase
Public MustInherit Class NonNullableConventionBase
Implements IModelFinalizedConvention
Public MustInherit Class NonNullableConventionBase
Implements IModelFinalizingConvention
Devralma
NonNullableConventionBase
Türetilmiş
Özellikler
Uygulamalar

Açıklamalar

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

Oluşturucular

Veri Akışı Adı Description
NonNullableConventionBase(ProviderConventionSetBuilderDependencies)

Üye türünün null atanamaz bir başvuru türü olup olmadığına bağlı olarak model yönlerini yapılandıran kurallar için temel tür.

Özellikler

Veri Akışı Adı Description
Dependencies

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

Yöntemler

Veri Akışı Adı Description
IsNonNullableReferenceType(IConventionModelBuilder, MemberInfo)

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

ProcessModelFinalized(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

Bir 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.

ProcessModelFinalizing(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

Bir model sonlandırılırken çağrılır.

TryGetNullabilityInfo(IConventionModelBuilder, MemberInfo, NullabilityInfo)

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

Şunlara uygulanır