语言

RuntimeProperty.IReadOnlyProperty.GetScale 方法

定义

获取此属性中允许的数据缩放。 例如,如果该属性是一个 Decimal ,则这是小数位数的最大数目。

[System.Diagnostics.DebuggerStepThrough]
int? IReadOnlyProperty.GetScale();
[<System.Diagnostics.DebuggerStepThrough>]
abstract member Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty.GetScale : unit -> Nullable<int>
override this.Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty.GetScale : unit -> Nullable<int>
Function GetScale () As Nullable(Of Integer) Implements IReadOnlyProperty.GetScale

返回

缩放或 null 未定义任何比例。

实现

特性

适用于