PropertyBaseExtensions.IsShadowProperty(IPropertyBase) Method

Definition

Caution

Use IReadOnlyPropertyBase.IsShadowProperty

Gets a value indicating whether this is a shadow property. A shadow property is one that does not have a corresponding property in the entity class. The current value for the property is stored in the ChangeTracker rather than being stored in instances of the entity class.

C#
public static bool IsShadowProperty (this Microsoft.EntityFrameworkCore.Metadata.IPropertyBase property);
C#
[System.Obsolete("Use IReadOnlyPropertyBase.IsShadowProperty")]
public static bool IsShadowProperty (this Microsoft.EntityFrameworkCore.Metadata.IPropertyBase property);

Parameters

property
IPropertyBase

The property to check.

Returns

true if the property is a shadow property, otherwise false.

Attributes

Applies to

Product Versions (Obsolete)
Entity Framework Core 3.0, 3.1, 5.0 (6.0)