Share via


IConventionModelBuilder.CanIgnore Method

Definition

Overloads

CanIgnore(String, Boolean)

Returns a value indicating whether the given entity type name can be ignored from the current configuration source

CanIgnore(Type, Boolean)

Returns a value indicating whether the given entity type can be ignored from the current configuration source.

CanIgnore(String, Boolean)

Returns a value indicating whether the given entity type name can be ignored from the current configuration source

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

Parameters

typeName
String

The entity type name to be removed from the model.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

true if the given entity type name can be ignored.

Applies to

CanIgnore(Type, Boolean)

Returns a value indicating whether the given entity type can be ignored from the current configuration source.

public bool CanIgnore (Type type, bool fromDataAnnotation = false);
abstract member CanIgnore : Type * bool -> bool
Public Function CanIgnore (type As Type, Optional fromDataAnnotation As Boolean = false) As Boolean

Parameters

type
Type

The entity type to be removed from the model.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

true if the given entity type can be ignored.

Applies to