RelationalModelAnnotations.GetOrAddSequence(String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Either returns the existing IMutableSequence with the given name in the given schema or creates a new sequence with the given name and schema.
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
Parameters
- name
- String
The sequence name.
- schema
- String
The schema name, or null
to use the default schema.
Returns
The sequence.
Applies to
Met ons samenwerken op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en controleren. Bekijk onze gids voor inzenders voor meer informatie.
Entity Framework