Bahasa

SqlServerPropertyExtensions.IsHidden(IReadOnlyProperty) Metode

Definisi

Mengembalikan nilai yang menunjukkan apakah kolom properti ditentukan dengan bendera SQL ServerHIDDEN, yang mengecualikan kolom dari SELECT * hasil.

public static bool IsHidden(this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty property);
static member IsHidden : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty -> bool
<Extension()>
Public Function IsHidden (property As IReadOnlyProperty) As Boolean

Parameter

property
IReadOnlyProperty

Properti tersebut.

Mengembalikan

true jika kolom properti disembunyikan. Default ke true ketika tidak dikonfigurasi secara eksplisit, karena kolom periode temporal disembunyikan secara default.

Keterangan

Ini berlaku untuk kolom yang ditentukan dengan GENERATED ALWAYS AS, termasuk SQL Server kolom periode tabel temporal. Default untuk kolom periode temporal adalah true; untuk kolom lain anotasi ini tidak berpengaruh kecuali kolom dibuat.

Berlaku untuk