Share via


IConventionElementTypeBuilder.HasPrecision Method

Definition

Configures the precision of elements of the collection.

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

Parameters

precision
Nullable<Int32>

The precision of elements of the collection.

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