Share via


PropertyExtensions.GetScale(IProperty) 方法

定义

获取此属性中允许的数据比例。 例如,如果 属性为 , Decimal 则这是小数位数的最大位数。

public static int? GetScale (this Microsoft.EntityFrameworkCore.Metadata.IProperty property);
static member GetScale : Microsoft.EntityFrameworkCore.Metadata.IProperty -> Nullable<int>
<Extension()>
Public Function GetScale (property As IProperty) As Nullable(Of Integer)

参数

property
IProperty

要获取 其比例的属性。

返回

小数位数,如果未 null 定义,则为 。

适用于