RelationalTypeMapping.WithPrecisionAndScale 方法

定义

创建此映射的副本。

public virtual Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping WithPrecisionAndScale (int? precision, int? scale);
abstract member WithPrecisionAndScale : Nullable<int> * Nullable<int> -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
override this.WithPrecisionAndScale : Nullable<int> * Nullable<int> -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
Public Overridable Function WithPrecisionAndScale (precision As Nullable(Of Integer), scale As Nullable(Of Integer)) As RelationalTypeMapping

参数

precision
Nullable<Int32>

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

scale
Nullable<Int32>

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

返回

新创建的映射。

适用于