IConventionSequenceBuilder.IsCyclic(Nullable<Boolean>, Boolean) Method

Definition

Sets whether or not the sequence will start again from the beginning once the maximum value is reached.

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

Parameters

cyclic
Nullable<Boolean>

If true, then the sequence with restart when the maximum is reached.

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