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

指示是否使用数据注释指定配置。

返回

忽略的实体类型的名称。

适用于