SqlServerPropertyExtensions.IsHidden(IReadOnlyProperty) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a value indicating whether the property's column is defined with the SQL Server HIDDEN flag,
which excludes the column from SELECT * results.
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
Parameters
- property
- IReadOnlyProperty
The property.
Returns
true if the property's column is hidden. Defaults to true when not
explicitly configured, since temporal period columns are hidden by default.
Remarks
This applies to columns defined with GENERATED ALWAYS AS, including SQL Server temporal table period columns. The default for temporal period columns is true; for other columns this annotation has no effect unless the column is generated.