共用方式為


RelationalTypeMapping.RelationalTypeMappingParameters.WithPrecisionAndScale 方法

定義

使用指定的有效位數和小數位數建立新的 RelationalTypeMapping.RelationalTypeMappingParameters 參數物件

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

參數

precision
Nullable<Int32>

屬性設定為儲存的資料精確度,如果未設定任何大小,則為 null。

scale
Nullable<Int32>

屬性設定為儲存的資料小數位數,如果未設定任何大小,則為 null。

傳回

新的參數物件。

適用於