PropertyBuilder.HasPrecision 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| HasPrecision(Int32) |
設定屬性的精確度。 |
| HasPrecision(Int32, Int32) |
配置物業的精確度與規模。 |
HasPrecision(Int32)
設定屬性的精確度。
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder HasPrecision(int precision);
abstract member HasPrecision : int -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder
override this.HasPrecision : int -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder
Public Overridable Function HasPrecision (precision As Integer) As PropertyBuilder
參數
- precision
- Int32
房產的精確度。
傳回
同一個建構器實例,這樣可以串接多個設定呼叫。
適用於
HasPrecision(Int32, Int32)
配置物業的精確度與規模。
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder HasPrecision(int precision, int scale);
abstract member HasPrecision : int * int -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder
override this.HasPrecision : int * int -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder
Public Overridable Function HasPrecision (precision As Integer, scale As Integer) As PropertyBuilder
參數
- precision
- Int32
房產的精確度。
- scale
- Int32
這塊地的規模。
傳回
同一個建構器實例,這樣可以串接多個設定呼叫。