Share via


SequenceBuilder.HasMax(Int64) Method

Definition

Sets the maximum value for the ISequence.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder HasMax (long maximum);
abstract member HasMax : int64 -> Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder
override this.HasMax : int64 -> Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder
Public Overridable Function HasMax (maximum As Long) As SequenceBuilder

Parameters

maximum
Int64

The maximum value for the sequence.

Returns

The same builder so that multiple calls can be chained.

Remarks

See Database sequences for more information and examples.

Applies to