Condividi tramite


RelationalModelAnnotations.GetOrAddSequence(String, String) Metodo

Definizione

Restituisce l'esistente IMutableSequence con il nome specificato nello schema specificato o crea una nuova sequenza con il nome e lo schema specificati.

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

Parametri

name
String

Nome della sequenza.

schema
String

Nome dello schema o null per usare lo schema predefinito.

Restituisce

Sequenza.

Si applica a