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

要忽略的實體類型。

傳回

忽略之型別的名稱。

適用於