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 默认架构。

返回

序列。

适用于