IConventionSequenceBuilder.StartsAt(Nullable<Int64>, Boolean) 方法

定义

将序列设置为从给定值开始。

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

参数

startValue
Nullable<Int64>

序列的起始值。

fromDataAnnotation
Boolean

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

返回

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

适用于