共用方式為


DecimalPropertyConfiguration.HasPrecision(Byte, Byte) 方法

定義

設定此屬性的有效位數和小數位數。

public System.Data.Entity.ModelConfiguration.Configuration.DecimalPropertyConfiguration HasPrecision (byte precision, byte scale);
member this.HasPrecision : byte * byte -> System.Data.Entity.ModelConfiguration.Configuration.DecimalPropertyConfiguration
Public Function HasPrecision (precision As Byte, scale As Byte) As DecimalPropertyConfiguration

參數

precision
Byte

此屬性的有效位數。

scale
Byte

此屬性的小數位數。

傳回

相同的 DecimalPropertyConfiguration 實例,以便鏈結多個呼叫。

適用於