MutableModelExtensions.AddIgnored(IMutableModel, Type) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將指定的實體類型標示為忽略,防止慣例將相符的實體類型新增至模型。
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
要忽略的實體類型。
傳回
忽略之型別的名稱。