IConventionSequence 介面

定義

表示模型中的資料庫順序,此表單可在建置模型時變動。

public interface IConventionSequence : Microsoft.EntityFrameworkCore.Metadata.ISequence
public interface IConventionSequence : Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotatable, Microsoft.EntityFrameworkCore.Metadata.ISequence
public interface IConventionSequence : Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotatable, Microsoft.EntityFrameworkCore.Metadata.IReadOnlySequence
type IConventionSequence = interface
    interface ISequence
type IConventionSequence = interface
    interface ISequence
    interface IAnnotatable
    interface IConventionAnnotatable
type IConventionSequence = interface
    interface IReadOnlySequence
    interface IReadOnlyAnnotatable
    interface IConventionAnnotatable
Public Interface IConventionSequence
Implements ISequence
Public Interface IConventionSequence
Implements IConventionAnnotatable, ISequence
Public Interface IConventionSequence
Implements IConventionAnnotatable, IReadOnlySequence
實作

備註

如需詳細資訊和範例 ,請參閱資料庫序列

屬性

Builder

取得可用來設定此序列的產生器。

ClrType
已過時。.

Type取得序列所傳回值的 。

(繼承來源 IReadOnlySequence)
IncrementBy

取得遞增的數量,以取得序列中的每個新值。

(繼承來源 IReadOnlySequence)
IsCyclic

取得值,指出當達到最大值時,序列是否會從開頭再次啟動。

(繼承來源 IReadOnlySequence)
IsInModel

指出此物件是否在模型中,亦即尚未從其中移除。

(繼承來源 IConventionAnnotatable)
Item[String]

取得具有指定名稱的注釋值,如果不存在,則傳 null 回 。

(繼承來源 IReadOnlyAnnotatable)
MaxValue

取得序列所支援的最大值,如果沒有設定,則 null 為 。

(繼承來源 IReadOnlySequence)
MinValue

取得序列支援的最小值,如果沒有設定,則 null 為 。

(繼承來源 IReadOnlySequence)
Model

IConventionModel取得定義這個序列的 。

ModelSchema

取得序列的模型架構。 這是 中指定的 HasSequence(ModelBuilder, String, String) ,以及要搭配 FindSequence(IConventionModel, String, String) 使用的 。

(繼承來源 IReadOnlySequence)
Name

取得資料庫中序列的名稱。

(繼承來源 IReadOnlySequence)
Schema

取得包含序列的資料庫架構。

(繼承來源 IReadOnlySequence)
StartValue

取得序列開始的值。

(繼承來源 IReadOnlySequence)
Type

取得序列傳回的值型別。

(繼承來源 IReadOnlySequence)

方法

AddAnnotation(String, Object, Boolean)

將批註加入至這個物件。 如果具有指定名稱的注釋已經存在,則會擲回 。

(繼承來源 IConventionAnnotatable)
AddAnnotations(IEnumerable<IConventionAnnotation>, Boolean)

將批註加入物件。

(繼承來源 IConventionAnnotatable)
AddRuntimeAnnotation(String, Object)

將執行時間批註加入至這個物件。 如果具有指定名稱的注釋已經存在,則會擲回 。

(繼承來源 IAnnotatable)
AnnotationsToDebugString(Int32)

取得 物件上宣告之所有批註的偵錯字串。

(繼承來源 IReadOnlyAnnotatable)
FindAnnotation(String)

取得具有指定名稱的注釋,如果不存在,則傳 null 回 。

(繼承來源 IReadOnlyAnnotatable)
FindRuntimeAnnotation(String)

取得具有指定名稱的執行時間批註,如果不存在,則傳 null 回 。

(繼承來源 IAnnotatable)
FindRuntimeAnnotationValue(String)

取得具有指定名稱的執行時間批註值,如果不存在,則傳 null 回 。

(繼承來源 IAnnotatable)
GetAnnotation(String)

取得具有指定名稱的注釋,如果不存在,則會擲回。

(繼承來源 IReadOnlyAnnotatable)
GetAnnotations()

取得目前 物件上的所有批註。

(繼承來源 IReadOnlyAnnotatable)
GetClrTypeConfigurationSource()
已過時。.

取得 的 ClrType 組態來源。

GetConfigurationSource()

取得這個 IConventionSequence 的組態來源。

GetIncrementByConfigurationSource()

取得 的 IncrementBy 組態來源。

GetIsCyclicConfigurationSource()

取得 的 IsCyclic 組態來源。

GetMaxValueConfigurationSource()

取得 的 MaxValue 組態來源。

GetMinValueConfigurationSource()

傳回 的 MinValue 組態來源。

GetOrAddRuntimeAnnotationValue<TValue,TArg>(String, Func<TArg,TValue>, TArg)

取得具有指定名稱的執行時間注釋值,如果不存在,請加以新增。

(繼承來源 IAnnotatable)
GetRuntimeAnnotations()

取得目前 物件上的所有執行時間批註。

(繼承來源 IAnnotatable)
GetStartValueConfigurationSource()

傳回 的 StartValue 組態來源。

GetTypeConfigurationSource()

取得 的 Type 組態來源。

RemoveAnnotation(String)

從這個 物件中移除具有指定名稱的批註。

(繼承來源 IConventionAnnotatable)
RemoveRuntimeAnnotation(String)

從這個 物件中移除指定的執行時間批註。

(繼承來源 IAnnotatable)
SetAnnotation(String, Object, Boolean)

設定儲存在指定名稱下的批註。 如果具有指定名稱的注釋已經存在,則覆寫現有的注釋。

(繼承來源 IConventionAnnotatable)
SetClrType(Type, Boolean)
已過時。.

Type設定序列所傳回值的 。

SetIncrementBy(Nullable<Int32>, Boolean)

設定遞增的數量,以取得序列中的每個新值。

SetIsCyclic(Nullable<Boolean>, Boolean)

設定當達到最大值時,序列是否會從開頭再次啟動。

SetMaxValue(Nullable<Int64>, Boolean)

設定序列支援的最大值。

SetMinValue(Nullable<Int64>, Boolean)

設定序列支援的最小值。

SetOrRemoveAnnotation(String, Object, Boolean)

設定儲存在指定名稱下的批註。 如果具有指定名稱的注釋已經存在,則覆寫現有的注釋。 如果 null 已提供,則移除現有的批註。

(繼承來源 IConventionAnnotatable)
SetRuntimeAnnotation(String, Object)

設定儲存在指定索引鍵下的執行時間批註。 如果具有指定名稱的注釋已經存在,則覆寫現有的注釋。

(繼承來源 IAnnotatable)
SetStartValue(Nullable<Int64>, Boolean)

設定序列開始所在的值。

SetType(Type, Boolean)

Type設定序列所傳回值的 。

ToDebugString(MetadataDebugStringOptions, Int32)

建立人類可讀取的指定中繼資料標記法。

警告:請勿依賴傳回字串的格式。 它是專為偵錯而設計,而且可能會在發行之間任意變更。

(繼承來源 IReadOnlySequence)

擴充方法

AddAnnotations(IConventionAnnotatable, IEnumerable<IConventionAnnotation>, Boolean)

將批註加入物件。

GetAnnotation(IConventionAnnotatable, String)

取得具有指定名稱的注釋,如果不存在,則會擲回。

SetOrRemoveAnnotation(IConventionAnnotatable, String, Object, Boolean)

設定儲存在指定名稱下的批註。 如果具有指定名稱的注釋已經存在,則覆寫現有的注釋。 如果 null 已提供,則移除現有的批註。

AnnotationsToDebugString(IAnnotatable, Int32)

取得 物件上宣告之所有批註的偵錯字串。

GetAnnotation(IAnnotatable, String)

取得具有指定名稱的注釋,如果不存在,則會擲回。

ToDebugString(ISequence, MetadataDebugStringOptions, Int32)

建立人類可讀取的指定中繼資料標記法。

警告:請勿依賴傳回字串的格式。 它是專為偵錯而設計,而且可能會在發行之間任意變更。

適用於