ElementTypeBuilder.HasPrecision 方法

定義

多載

HasPrecision(Int32)

設定集合專案的有效位數。

HasPrecision(Int32, Int32)

設定集合專案的有效位數和小數位數。

HasPrecision(Int32)

設定集合專案的有效位數。

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ElementTypeBuilder HasPrecision (int precision);
abstract member HasPrecision : int -> Microsoft.EntityFrameworkCore.Metadata.Builders.ElementTypeBuilder
override this.HasPrecision : int -> Microsoft.EntityFrameworkCore.Metadata.Builders.ElementTypeBuilder
Public Overridable Function HasPrecision (precision As Integer) As ElementTypeBuilder

參數

precision
Int32

集合專案的有效位數。

傳回

相同的產生器實例,以便鏈結多個組態呼叫。

適用於

HasPrecision(Int32, Int32)

設定集合專案的有效位數和小數位數。

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ElementTypeBuilder HasPrecision (int precision, int scale);
abstract member HasPrecision : int * int -> Microsoft.EntityFrameworkCore.Metadata.Builders.ElementTypeBuilder
override this.HasPrecision : int * int -> Microsoft.EntityFrameworkCore.Metadata.Builders.ElementTypeBuilder
Public Overridable Function HasPrecision (precision As Integer, scale As Integer) As ElementTypeBuilder

參數

precision
Int32

集合專案的有效位數。

scale
Int32

集合專案的縮放比例。

傳回

相同的產生器實例,以便鏈結多個組態呼叫。

適用於