SequenceBuilder.IConventionSequenceBuilder.IsCyclic 方法

定义

设置一旦达到最大值,序列是否将从头开始。

Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSequenceBuilder IConventionSequenceBuilder.IsCyclic (bool? cyclic, bool fromDataAnnotation);
abstract member Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSequenceBuilder.IsCyclic : Nullable<bool> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSequenceBuilder
override this.Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSequenceBuilder.IsCyclic : Nullable<bool> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSequenceBuilder
Function IsCyclic (cyclic As Nullable(Of Boolean), fromDataAnnotation As Boolean) As IConventionSequenceBuilder Implements IConventionSequenceBuilder.IsCyclic

参数

cyclic
Nullable<Boolean>

如果 true为 ,则在达到最大值时重启序列。

fromDataAnnotation
Boolean

指示是否使用数据注释指定配置。

返回

如果应用了配置,则为同一生成器实例, null 否则为 。

实现

适用于