PropertyBuilder.HasPrecision 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| HasPrecision(Int32) |
配置属性的精度。 |
| HasPrecision(Int32, Int32) |
配置属性的精度和小数位数。 |
HasPrecision(Int32)
- Source:
- PropertyBuilder.cs
- Source:
- PropertyBuilder.cs
- Source:
- PropertyBuilder.cs
- Source:
- PropertyBuilder.cs
- Source:
- PropertyBuilder.cs
- Source:
- PropertyBuilder.cs
- Source:
- PropertyBuilder.cs
配置属性的精度。
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)
- Source:
- PropertyBuilder.cs
- Source:
- PropertyBuilder.cs
- Source:
- PropertyBuilder.cs
- Source:
- PropertyBuilder.cs
- Source:
- PropertyBuilder.cs
- Source:
- PropertyBuilder.cs
- Source:
- PropertyBuilder.cs
配置属性的精度和小数位数。
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
属性的刻度。
返回
同一个生成器实例,以便可以链接多个配置调用。