语言

SequenceBuilder.IConventionSequenceBuilder.CanSetCyclic 方法

定义

返回一个值,该值指示是否可以为序列设置给定循环。

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

参数

cyclic
Nullable<Boolean>

如果 true,则达到最大值时重新启动的序列。

fromDataAnnotation
Boolean

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

返回

true 如果可以为序列设置给定循环,则为该序列设置。

实现

适用于