共用方式為


RelationalTypeMapping.RelationalTypeMappingParameters.WithScale 方法

定義

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

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

參數

scale
Nullable<Int32>

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

傳回

新的參數物件。

適用於