語言

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

要忽略的實體類型。

傳回

那個被忽略的類型的名字。

適用於