MutableModelExtensions.AddIgnored(IMutableModel, Type) 方法

定义

将给定的实体类型标记为已忽略,从而阻止约定将匹配的实体类型添加到模型。

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

参数

model
IMutableModel

要向其添加忽略类型的模型。

clrTypetype
Type

要忽略的实体类型。

返回

忽略的类型的名称。

适用于