Idioma

TemporalPeriodPropertyBuilder.IsHidden(Boolean) Method

Definition

Configures whether the period column is defined with the SQL Server HIDDEN flag, which excludes it from SELECT * results.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.TemporalPeriodPropertyBuilder IsHidden(bool hidden = true);
abstract member IsHidden : bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.TemporalPeriodPropertyBuilder
override this.IsHidden : bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.TemporalPeriodPropertyBuilder
Public Overridable Function IsHidden (Optional hidden As Boolean = true) As TemporalPeriodPropertyBuilder

Parameters

hidden
Boolean

A value indicating whether the column should be hidden.

Returns

The same builder instance so that multiple calls can be chained.

Remarks

The default is true for period columns, matching the behavior of EF Core releases prior to this option being introduced. Set to false to make the column visible.

See Using SQL Server temporal tables with EF Core for more information.

Applies to