IMutableSequence 介面

定義

表示模型中的資料庫序列。

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

備註

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

屬性

ClrType
已過時。.

取得或設定 Type 序列所傳回值的 。

IncrementBy

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

IsCyclic

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

Item[String]

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

(繼承來源 IReadOnlyAnnotatable)
MaxValue

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

MinValue

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

Model

取得定義 IMutableModel 這個序列的 。

ModelSchema

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

(繼承來源 IReadOnlySequence)
Name

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

(繼承來源 IReadOnlySequence)
Schema

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

(繼承來源 IReadOnlySequence)
StartValue

取得或設定序列開始的值。

Type

取得或設定 Type 序列所傳回值的 。

方法

AddAnnotation(String, Object)

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

(繼承來源 IMutableAnnotatable)
AddAnnotations(IEnumerable<IAnnotation>)

將批註加入物件。

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

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

(繼承來源 IAnnotatable)
AnnotationsToDebugString(Int32)

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

(繼承來源 IReadOnlyAnnotatable)
FindAnnotation(String)

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

(繼承來源 IReadOnlyAnnotatable)
FindRuntimeAnnotation(String)

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

(繼承來源 IAnnotatable)
FindRuntimeAnnotationValue(String)

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

(繼承來源 IAnnotatable)
GetAnnotation(String)

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

(繼承來源 IReadOnlyAnnotatable)
GetAnnotations()

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

(繼承來源 IReadOnlyAnnotatable)
GetOrAddRuntimeAnnotationValue<TValue,TArg>(String, Func<TArg,TValue>, TArg)

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

(繼承來源 IAnnotatable)
GetRuntimeAnnotations()

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

(繼承來源 IAnnotatable)
RemoveAnnotation(String)

從這個 物件中移除指定的批註。

(繼承來源 IMutableAnnotatable)
RemoveRuntimeAnnotation(String)

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

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

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

(繼承來源 IMutableAnnotatable)
SetOrRemoveAnnotation(String, Object)

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

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

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

(繼承來源 IAnnotatable)
ToDebugString(MetadataDebugStringOptions, Int32)

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

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

(繼承來源 IReadOnlySequence)

擴充方法

AnnotationsToDebugString(IAnnotatable, Int32)

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

GetAnnotation(IAnnotatable, String)

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

ToDebugString(ISequence, MetadataDebugStringOptions, Int32)

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

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

AddAnnotations(IMutableAnnotatable, IEnumerable<IAnnotation>)

將批註加入物件。

GetAnnotation(IMutableAnnotatable, String)

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

SetOrRemoveAnnotation(IMutableAnnotatable, String, Object)

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

適用於