IConventionPropertyBuilder.CanSetValueComparer 方法

定义

重载

CanSetValueComparer(ValueComparer, Boolean)

返回一个值,该值指示是否可以从当前配置源为此属性配置给定 ValueComparer

CanSetValueComparer(Type, Boolean)

返回一个值,该值指示是否可以从当前配置源为此属性配置给定 ValueComparer

CanSetValueComparer(ValueComparer, Boolean)

Source:
IConventionPropertyBuilder.cs
Source:
IConventionPropertyBuilder.cs
Source:
IConventionPropertyBuilder.cs

返回一个值,该值指示是否可以从当前配置源为此属性配置给定 ValueComparer

public bool CanSetValueComparer (Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer comparer, bool fromDataAnnotation = false);
public bool CanSetValueComparer (Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer? comparer, bool fromDataAnnotation = false);
abstract member CanSetValueComparer : Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer * bool -> bool
Public Function CanSetValueComparer (comparer As ValueComparer, Optional fromDataAnnotation As Boolean = false) As Boolean

参数

comparer
ValueComparer

比较器,或者 null 删除任何以前设置的比较器。

fromDataAnnotation
Boolean

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

返回

true 如果可以为此属性配置给定 ValueComparer 的 ,则为 。

适用于

CanSetValueComparer(Type, Boolean)

Source:
IConventionPropertyBuilder.cs
Source:
IConventionPropertyBuilder.cs
Source:
IConventionPropertyBuilder.cs

返回一个值,该值指示是否可以从当前配置源为此属性配置给定 ValueComparer

public bool CanSetValueComparer (Type? comparerType, bool fromDataAnnotation = false);
abstract member CanSetValueComparer : Type * bool -> bool
Public Function CanSetValueComparer (comparerType As Type, Optional fromDataAnnotation As Boolean = false) As Boolean

参数

comparerType
Type

派生自 ValueComparer的类型,或 null 用于删除任何以前设置的比较器。

fromDataAnnotation
Boolean

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

返回

true 如果可以为此属性配置给定 ValueComparer 的 ,则为 。

适用于