Delen via


IReadOnlySequence Interface

Definition

Represents a database sequence in the model.

public interface IReadOnlySequence : Microsoft.EntityFrameworkCore.Infrastructure.IReadOnlyAnnotatable
type IReadOnlySequence = interface
    interface IReadOnlyAnnotatable
Public Interface IReadOnlySequence
Implements IReadOnlyAnnotatable
Derived
Implements

Remarks

See Database sequences for more information and examples.

Properties

ClrType
Obsolete.

Gets the Type of values returned by the sequence.

IncrementBy

Gets the amount incremented to obtain each new value in the sequence.

IsCyclic

Gets the value indicating whether the sequence will start again from the beginning when the max value is reached.

Item[String]

Gets the value of the annotation with the given name, returning null if it does not exist.

(Inherited from IReadOnlyAnnotatable)
MaxValue

Gets the maximum value supported by the sequence, or null if none has been set.

MinValue

Gets the minimum value supported by the sequence, or null if none has been set.

Model

Gets the model in which this sequence is defined.

ModelSchema

Gets the model schema of the sequence. This is the one specified in HasSequence(ModelBuilder, String, String) and the one to use with FindSequence(IConventionModel, String, String).

Name

Gets the name of the sequence in the database.

Schema

Gets the database schema that contains the sequence.

StartValue

Gets the value at which the sequence will start.

Type

Gets the type of values returned by the sequence.

Methods

AnnotationsToDebugString(Int32)

Gets the debug string for all annotations declared on the object.

(Inherited from IReadOnlyAnnotatable)
FindAnnotation(String)

Gets the annotation with the given name, returning null if it does not exist.

(Inherited from IReadOnlyAnnotatable)
GetAnnotation(String)

Gets the annotation with the given name, throwing if it does not exist.

(Inherited from IReadOnlyAnnotatable)
GetAnnotations()

Gets all annotations on the current object.

(Inherited from IReadOnlyAnnotatable)
ToDebugString(MetadataDebugStringOptions, Int32)

Creates a human-readable representation of the given metadata.

Warning: Do not rely on the format of the returned string. It is designed for debugging only and may change arbitrarily between releases.

Applies to