Share via


MutablePropertyExtensions.SetScale 方法

定义

设置此属性中允许的数据规模。 例如,如果 属性为 , Decimal 则这是小数位数的最大位数。

public static void SetScale (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, int? scale);
static member SetScale : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty * Nullable<int> -> unit
<Extension()>
Public Sub SetScale (property As IMutableProperty, scale As Nullable(Of Integer))

参数

property
IMutableProperty

要设置其小数位数的属性。

scale
Nullable<Int32>

此属性中允许的最大小数位数。

适用于