Share via


IConventionPropertyBuilder.HasScale(Nullable<Int32>, Boolean) Method

Definition

Configures the scale of the property.

public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder? HasScale (int? scale, bool fromDataAnnotation = false);
abstract member HasScale : Nullable<int> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder
Public Function HasScale (scale As Nullable(Of Integer), Optional fromDataAnnotation As Boolean = false) As IConventionPropertyBuilder

Parameters

scale
Nullable<Int32>

The scale of the property.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

The same builder instance if the configuration was applied, null otherwise.

Applies to