IMutableSequence 介面
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
代表模型中的資料庫序列。
public interface IMutableSequence : Microsoft.EntityFrameworkCore.Metadata.IMutableAnnotatable, Microsoft.EntityFrameworkCore.Metadata.IReadOnlySequence
public interface IMutableSequence : Microsoft.EntityFrameworkCore.Metadata.ISequence
public interface IMutableSequence : Microsoft.EntityFrameworkCore.Metadata.IMutableAnnotatable, Microsoft.EntityFrameworkCore.Metadata.ISequence
type IMutableSequence = interface
interface IReadOnlySequence
interface IReadOnlyAnnotatable
interface IMutableAnnotatable
type IMutableSequence = interface
interface ISequence
type IMutableSequence = interface
interface ISequence
interface IAnnotatable
interface IMutableAnnotatable
Public Interface IMutableSequence
Implements IMutableAnnotatable, IReadOnlySequence
Public Interface IMutableSequence
Implements ISequence
Public Interface IMutableSequence
Implements IMutableAnnotatable, ISequence
- 實作
備註
更多資訊與範例請參見 資料庫序列 。
屬性
| 名稱 | Description |
|---|---|
| ClrType |
已淘汰.
取得或設定 Type 序列回傳的值。 |
| IncrementBy |
取得或設定每個新值遞增的金額。 |
| IsCyclic |
取得或設定 a 值,表示當達到最大值時序列是否會從頭開始。 |
| Item[String] |
取得帶有名稱的值註解,若不存在則回 |
| MaxValue |
取得或設定序列所支持的最大值,或 |
| MinValue |
取得或設定序列所支持的最小值,或 |
| Model |
得到 IMutableModel 定義此序列的 。 |
| ModelSchema |
取得序列的模型結構。 這是在 中 HasSequence(ModelBuilder, String, String) 指定的,也是要與 FindSequence(IConventionModel, String, String)一起使用的。 (繼承來源 IReadOnlySequence) |
| Name |
取得資料庫中序列名稱。 (繼承來源 ISequence) |
| Schema |
取得包含序列的資料庫結構。 (繼承來源 ISequence) |
| StartValue |
取得或設定序列起始的值。 |
| Type |
取得或設定 Type 序列回傳的值。 |
方法
擴充方法
| 名稱 | Description |
|---|---|
| AddAnnotations(IMutableAnnotatable, IEnumerable<IAnnotation>) |
為物件添加註解。 |
| AnnotationsToDebugString(IAnnotatable, Int32) |
取得物件上所有宣告註解的除錯字串。 |
| GetAnnotation(IAnnotatable, String) |
取得帶有名稱的註解,若不存在則拋出。 |
| GetAnnotation(IMutableAnnotatable, String) |
取得帶有名稱的註解,若不存在則拋出。 |
| SetOrRemoveAnnotation(IMutableAnnotatable, String, Object) |
設定以名字儲存的註解。 若已有指定名稱的註解存在,則會覆寫現有註解。 若 |
| ToDebugString(ISequence, MetadataDebugStringOptions, Int32) |
建立給定元資料的可讀表示法。 警告:請勿依賴回傳字串的格式。 它僅設計用於除錯,且可能在不同版本間任意變動。 |