RelationalTypeMapping.RelationalTypeMappingParameters.WithPrecision 方法

定义

创建具有给定精度的新 RelationalTypeMapping.RelationalTypeMappingParameters 参数对象。

public Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping.RelationalTypeMappingParameters WithPrecision (int? precision);
member this.WithPrecision : Nullable<int> -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping.RelationalTypeMappingParameters
Public Function WithPrecision (precision As Nullable(Of Integer)) As RelationalTypeMapping.RelationalTypeMappingParameters

参数

precision
Nullable<Int32>

属性配置为存储的数据精度,如果未配置大小,则为 null。

返回

新的参数对象。

适用于