Share via


IConventionElementTypeBuilder.CanSetPrecision Method

Definition

Returns a value indicating whether the precision of elements can be set 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 elements.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

true if the precision of data allowed can be set.

Applies to