語言

IConventionSequenceBuilder 介面

定義

提供一個簡單的 API 來設定 IConventionSequence.

public interface IConventionSequenceBuilder : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionAnnotatableBuilder
public interface IConventionSequenceBuilder
type IConventionSequenceBuilder = interface
    interface IConventionAnnotatableBuilder
type IConventionSequenceBuilder = interface
Public Interface IConventionSequenceBuilder
Implements IConventionAnnotatableBuilder
Public Interface IConventionSequenceBuilder
衍生
實作

備註

更多資訊與範例請參閱 模型建構慣例 。

屬性

名稱 Description
Metadata

序列正在設定中。

ModelBuilder

會得到模型製作者。

(繼承來源 IConventionAnnotatableBuilder)

方法

名稱 Description
CanRemoveAnnotation(String, Boolean)

回傳一個值,指示是否能使用此組態來源移除帶有該名稱的註解。

(繼承來源 IConventionAnnotatableBuilder)
CanSetAnnotation(String, Object, Boolean)

回傳一個值,指示是否能從此配置來源設定包含該名稱與值的註解。

(繼承來源 IConventionAnnotatableBuilder)
CanSetCyclic(Nullable<Boolean>, Boolean)

回傳一個值,表示是否能設定該序列的循環度。

CanSetIncrementsBy(Nullable<Int32>, Boolean)

回傳一個值,表示序列是否能設定給定的增量。

CanSetIsCyclic(Nullable<Boolean>, Boolean)

回傳一個值,表示是否能設定該序列的循環度。

CanSetMax(Nullable<Int64>, Boolean)

回傳一個值,表示是否可以設定該序列的最大值。

CanSetMin(Nullable<Int64>, Boolean)

回傳一個值,表示是否可以設定該序列的最小值。

CanSetStartsAt(Nullable<Int64>, Boolean)

回傳一個值,表示是否可以設定給定的起始值。

CanSetType(Type, Boolean)

回傳一個值,表示該序列是否能設定該類型。

HasAnnotation(String, Object, Boolean)

設定以名字儲存的註解。 若已有指定名稱的註解存在相同或更低 ConfigurationSource的標註,則會覆寫現有註解。

HasMax(Nullable<Int64>, Boolean)

設定序列的最大值。

HasMin(Nullable<Int64>, Boolean)

設定序列的最小值。

HasNoAnnotation(String, Boolean)

移除這個物件中帶有名字的註解。

HasNonNullAnnotation(String, Object, Boolean)

設定以名字儲存的註解。 若已有指定名稱的註解存在相同或更低 ConfigurationSource的標註,則會覆寫現有註解。 若指定值, null 則移除註解。

HasType(Type, Boolean)

設定序列回傳的值類型。

IncrementsBy(Nullable<Int32>, Boolean)

在產生下一個值時,設定序列依給定數量遞增。

IsCyclic(Nullable<Boolean>, Boolean)

設定當達到最大值後,序列是否會從頭開始。

RemoveAnnotation(String, Boolean)
已淘汰.

移除這個物件中帶有名字的註解。

(繼承來源 IConventionAnnotatableBuilder)
SetOrRemoveAnnotation(String, Object, Boolean)
已淘汰.

設定或移除以名字儲存的註解。

(繼承來源 IConventionAnnotatableBuilder)
StartsAt(Nullable<Int64>, Boolean)

將序列設定為從給定值開始。

適用於