Share via


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

Definition

Configures the scale of elements of the collection.

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

Parameters

scale
Nullable<Int32>

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