共用方式為


RelationalModelAnnotations.GetOrAddSequence(String, String) 方法

定義

傳回具有 IMutableSequence 指定架構中指定名稱的現有 ,或建立具有指定名稱和架構的新序列。

public virtual Microsoft.EntityFrameworkCore.Metadata.Sequence GetOrAddSequence (string name, string schema = default);
public virtual Microsoft.EntityFrameworkCore.Metadata.IMutableSequence GetOrAddSequence (string name, string schema = default);
abstract member GetOrAddSequence : string * string -> Microsoft.EntityFrameworkCore.Metadata.Sequence
override this.GetOrAddSequence : string * string -> Microsoft.EntityFrameworkCore.Metadata.Sequence
abstract member GetOrAddSequence : string * string -> Microsoft.EntityFrameworkCore.Metadata.IMutableSequence
override this.GetOrAddSequence : string * string -> Microsoft.EntityFrameworkCore.Metadata.IMutableSequence
Public Overridable Function GetOrAddSequence (name As String, Optional schema As String = Nothing) As Sequence
Public Overridable Function GetOrAddSequence (name As String, Optional schema As String = Nothing) As IMutableSequence

參數

name
String

序列名稱。

schema
String

架構名稱,或使用 null 預設架構。

傳回

順序。

適用於