RelationalModelAnnotations.GetOrAddSequence(String, String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
傳回具有 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
預設架構。
傳回
順序。