# Class NpgsqlSequenceHiLoValueGenerator<TValue>

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 NpgsqlSequenceHiLoValueGenerator<TValue> : HiLoValueGenerator<TValue>

#### Type Parameters

`TValue`

Inheritance
  object
  ValueGenerator
  ValueGenerator<TValue>
  HiLoValueGenerator<TValue>
  NpgsqlSequenceHiLoValueGenerator<TValue>

Inherited Members
  HiLoValueGenerator<TValue>.Next(EntityEntry)
  HiLoValueGenerator<TValue>.NextAsync(EntityEntry, CancellationToken)
  ValueGenerator<TValue>.NextValue(EntityEntry)
  ValueGenerator<TValue>.NextValueAsync(EntityEntry, CancellationToken)
  ValueGenerator.WithConverter(ValueConverter)
  ValueGenerator.GeneratesStableValues
  object.Equals(object)
  object.Equals(object, object)
  object.GetHashCode()
  object.GetType()
  object.MemberwiseClone()
  object.ReferenceEquals(object, object)
  object.ToString()

## Constructors

### NpgsqlSequenceHiLoValueGenerator(IRawSqlCommandBuilder, IUpdateSqlGenerator, NpgsqlSequenceValueGeneratorState, INpgsqlRelationalConnection, IRelationalCommandDiagnosticsLogger)

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 NpgsqlSequenceHiLoValueGenerator(IRawSqlCommandBuilder rawSqlCommandBuilder, IUpdateSqlGenerator sqlGenerator, NpgsqlSequenceValueGeneratorState generatorState, INpgsqlRelationalConnection connection, IRelationalCommandDiagnosticsLogger commandLogger)

#### Parameters

`rawSqlCommandBuilder` IRawSqlCommandBuilder
`sqlGenerator` IUpdateSqlGenerator
`generatorState` NpgsqlSequenceValueGeneratorState
`connection` INpgsqlRelationalConnection
`commandLogger` IRelationalCommandDiagnosticsLogger

## Properties

### GeneratesTemporaryValues

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 override bool GeneratesTemporaryValues { get; }

#### Property Value

bool

## Methods

### GetNewLowValue()

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.

    protected override long GetNewLowValue()

#### Returns

long

### GetNewLowValueAsync(CancellationToken)

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.

    protected override Task<long> GetNewLowValueAsync(CancellationToken cancellationToken = default)

#### Parameters

`cancellationToken` CancellationToken

#### Returns

Task<long>