Share via


MutableModelExtensions.AddIgnored(IMutableModel, Type) Method

Definition

Marks the given entity type as ignored, preventing conventions from adding a matching entity type to the model.

public static void AddIgnored (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, Type clrType);
public static string AddIgnored (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, Type type);
static member AddIgnored : Microsoft.EntityFrameworkCore.Metadata.IMutableModel * Type -> unit
static member AddIgnored : Microsoft.EntityFrameworkCore.Metadata.IMutableModel * Type -> string
<Extension()>
Public Sub AddIgnored (model As IMutableModel, clrType As Type)
<Extension()>
Public Function AddIgnored (model As IMutableModel, type As Type) As String

Parameters

model
IMutableModel

The model to add the ignored type to.

clrTypetype
Type

The entity type to be ignored.

Returns

The name of the ignored type.

Applies to