Bahasa

NonNullableConventionBase Kelas

Definisi

Jenis dasar untuk konvensi yang mengonfigurasi aspek model berdasarkan apakah jenis anggota adalah jenis referensi yang tidak dapat diubah ke null.

[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
Warisan
NonNullableConventionBase
Turunan
Atribut
Penerapan

Keterangan

Lihat Konvensi pembuatan model untuk informasi dan contoh selengkapnya.

Konstruktor

Nama Deskripsi
NonNullableConventionBase(ProviderConventionSetBuilderDependencies)

Jenis dasar untuk konvensi yang mengonfigurasi aspek model berdasarkan apakah jenis anggota adalah jenis referensi yang tidak dapat diubah ke null.

Properti

Nama Deskripsi
Dependencies

Dependensi untuk layanan ini.

Metode

Nama Deskripsi
IsNonNullableReferenceType(IConventionModelBuilder, MemberInfo)

Mengembalikan nilai yang menunjukkan apakah jenis anggota adalah jenis referensi yang tidak dapat diubah ke null.

ProcessModelFinalized(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

Dipanggil setelah model diselesaikan. Menghapus anotasi status singgahan yang digunakan oleh konvensi ini.

ProcessModelFinalizing(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

Dipanggil ketika model sedang diselesaikan.

TryGetNullabilityInfo(IConventionModelBuilder, MemberInfo, NullabilityInfo)

Mengembalikan nilai yang menunjukkan apakah jenis anggota adalah jenis referensi yang tidak dapat diubah ke null.

Berlaku untuk