IConventionModel.AddIgnored Method

Definition

Overloads

AddIgnored(String, Boolean)

Marks the given entity type name as ignored.

AddIgnored(Type, Boolean)

Marks the given entity type as ignored.

AddIgnored(String, Boolean)

Source:
IConventionModel.cs
Source:
IConventionModel.cs
Source:
IConventionModel.cs
Source:
IConventionModel.cs

Marks the given entity type name as ignored.

C#
public void AddIgnored (string typeName, bool fromDataAnnotation = false);
C#
public string AddIgnored (string typeName, bool fromDataAnnotation = false);
C#
public string? AddIgnored (string typeName, bool fromDataAnnotation = false);

Parameters

typeName
String

The name of the entity type to be ignored.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

The name of the ignored entity type.

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

AddIgnored(Type, Boolean)

Source:
IConventionModel.cs
Source:
IConventionModel.cs
Source:
IConventionModel.cs
Source:
IConventionModel.cs

Marks the given entity type as ignored.

C#
public string? AddIgnored (Type type, bool fromDataAnnotation = false);

Parameters

type
Type

The entity type to be ignored.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

The name of the ignored entity type.

Applies to

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