语言

IConventionPropertyBuilder.HasScale(Nullable<Int32>, Boolean) 方法

定义

配置属性的规模。

public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder? HasScale(int? scale, bool fromDataAnnotation = false);
abstract member HasScale : Nullable<int> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder
Public Function HasScale (scale As Nullable(Of Integer), Optional fromDataAnnotation As Boolean = false) As IConventionPropertyBuilder

参数

scale
Nullable<Int32>

属性的刻度。

fromDataAnnotation
Boolean

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

返回

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

适用于