IConventionEntityTypeBuilder.IsIgnored(String, Boolean) Method

Definition

Indicates whether the given member name is ignored for the given configuration source.

public bool IsIgnored (string memberName, bool fromDataAnnotation = false);
abstract member IsIgnored : string * bool -> bool
Public Function IsIgnored (memberName As String, Optional fromDataAnnotation As Boolean = false) As Boolean

Parameters

memberName
String

The name of the member that might be ignored.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

false if the entity type contains a member with the given name, the given member name hasn't been ignored or it was ignored using a lower configuration source; true otherwise.

Applies to