Share via


IConventionPropertyBuilder.CanSetPrecision Method

Definition

Returns a value indicating whether the precision of data allowed can be set for this property from the current configuration source.

public bool CanSetPrecision (int? precision, bool fromDataAnnotation = false);
abstract member CanSetPrecision : Nullable<int> * bool -> bool
Public Function CanSetPrecision (precision As Nullable(Of Integer), Optional fromDataAnnotation As Boolean = false) As Boolean

Parameters

precision
Nullable<Int32>

The precision of the property.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

true if the precision of data allowed can be set for this property.

Applies to