PropertyExtensions.GetScale(IProperty) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取此属性中允许的数据缩放。 例如,如果该属性是一个 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 未定义任何比例。