# Class NpgsqlSequenceValueGeneratorState

Namespace
  Npgsql.EntityFrameworkCore.PostgreSQL.ValueGeneration.Internal

Assembly
  Npgsql.EntityFrameworkCore.PostgreSQL.dll

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

    public class NpgsqlSequenceValueGeneratorState : HiLoValueGeneratorState, IDisposable

Inheritance
  object
  HiLoValueGeneratorState
  NpgsqlSequenceValueGeneratorState

Implements
  IDisposable

Inherited Members
  HiLoValueGeneratorState.Next<TValue>(Func<long>)
  HiLoValueGeneratorState.NextAsync<TValue>(Func<CancellationToken, Task<long>>, CancellationToken)
  HiLoValueGeneratorState.Dispose()
  object.Equals(object)
  object.Equals(object, object)
  object.GetHashCode()
  object.GetType()
  object.MemberwiseClone()
  object.ReferenceEquals(object, object)
  object.ToString()

## Constructors

### NpgsqlSequenceValueGeneratorState(ISequence)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

    public NpgsqlSequenceValueGeneratorState(ISequence sequence)

#### Parameters

`sequence` ISequence

## Properties

### Sequence

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

    public virtual ISequence Sequence { get; }

#### Property Value

ISequence