語言

SqlServerPropertyBuilderExtensions.CanSetIsHidden Method

Definition

Returns a value indicating whether the property's column can be configured with the SQL Server HIDDEN flag.

public static bool CanSetIsHidden(this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder propertyBuilder, bool? hidden, bool fromDataAnnotation = false);
static member CanSetIsHidden : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder * Nullable<bool> * bool -> bool
<Extension()>
Public Function CanSetIsHidden (propertyBuilder As IConventionPropertyBuilder, hidden As Nullable(Of Boolean), Optional fromDataAnnotation As Boolean = false) As Boolean

Parameters

propertyBuilder
IConventionPropertyBuilder

The builder for the property being configured.

hidden
Nullable<Boolean>

A value indicating whether the property's column is hidden.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

true if the property's column can be configured with the HIDDEN flag.

Remarks

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

Applies to