IConventionPropertyBuilder.HasValueComparer 方法

定义

重载

HasValueComparer(ValueComparer, Boolean)

ValueComparer为此属性配置 。

HasValueComparer(Type, Boolean)

ValueComparer为此属性配置 。

HasValueComparer(ValueComparer, Boolean)

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

ValueComparer为此属性配置 。

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

参数

comparer
ValueComparer

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

fromDataAnnotation
Boolean

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

返回

如果应用了配置,则为同一生成器实例, null 否则为 。

适用于

HasValueComparer(Type, Boolean)

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

ValueComparer为此属性配置 。

public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder? HasValueComparer (Type? comparerType, bool fromDataAnnotation = false);
abstract member HasValueComparer : Type * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder
Public Function HasValueComparer (comparerType As Type, Optional fromDataAnnotation As Boolean = false) As IConventionPropertyBuilder

参数

comparerType
Type

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

fromDataAnnotation
Boolean

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

返回

如果应用了配置,则为同一生成器实例, null 否则为 。

适用于