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)

Source:
IConventionModelBuilder.cs
Source:
IConventionModelBuilder.cs
Source:
IConventionModelBuilder.cs

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

C#
public bool CanIgnore (string typeName, bool fromDataAnnotation = false);

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

Entity Framework Core 9.0 and other versions
Product Versions
Entity Framework Core 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0

CanIgnore(Type, Boolean)

Source:
IConventionModelBuilder.cs
Source:
IConventionModelBuilder.cs
Source:
IConventionModelBuilder.cs

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

C#
public bool CanIgnore (Type type, bool fromDataAnnotation = false);

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

Entity Framework Core 9.0 and other versions
Product Versions
Entity Framework Core 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0