语言

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 未定义任何比例。

适用于