Share via


IConventionSequenceBuilder.HasMax(Nullable<Int64>, Boolean) Method

Definition

Sets the maximum value for the sequence.

public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSequenceBuilder HasMax (long? maximum, bool fromDataAnnotation = false);
public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSequenceBuilder? HasMax (long? maximum, bool fromDataAnnotation = false);
abstract member HasMax : Nullable<int64> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSequenceBuilder
Public Function HasMax (maximum As Nullable(Of Long), Optional fromDataAnnotation As Boolean = false) As IConventionSequenceBuilder

Parameters

maximum
Nullable<Int64>

The maximum value for the sequence.

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