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