共用方式為


ConventionModelExtensions.AddIgnored(IConventionModel, Type, Boolean) 方法

定義

將指定的實體類型標示為忽略。

public static void AddIgnored (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, Type clrType, bool fromDataAnnotation = false);
public static string AddIgnored (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, Type type, bool fromDataAnnotation = false);
static member AddIgnored : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * Type * bool -> unit
static member AddIgnored : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * Type * bool -> string
<Extension()>
Public Sub AddIgnored (model As IConventionModel, clrType As Type, Optional fromDataAnnotation As Boolean = false)
<Extension()>
Public Function AddIgnored (model As IConventionModel, type As Type, Optional fromDataAnnotation As Boolean = false) As String

參數

model
IConventionModel

要加入忽略型別的模型。

clrTypetype
Type

要忽略的實體類型。

fromDataAnnotation
Boolean

指出是否使用資料批註來指定組態。

傳回

忽略實體類型的名稱。

適用於