IConventionPropertyBuilder.HasPrecision Method

Definition

Configures the precision of the property.

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

Parameters

precision
Nullable<Int32>

The precision 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