# Class NpgsqlSequenceValueGeneratorFactory

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 NpgsqlSequenceValueGeneratorFactory : INpgsqlSequenceValueGeneratorFactory

Inheritance
  object
  NpgsqlSequenceValueGeneratorFactory

Implements
  INpgsqlSequenceValueGeneratorFactory

Inherited Members
  object.Equals(object)
  object.Equals(object, object)
  object.GetHashCode()
  object.GetType()
  object.MemberwiseClone()
  object.ReferenceEquals(object, object)
  object.ToString()

## Constructors

### NpgsqlSequenceValueGeneratorFactory(IUpdateSqlGenerator)

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 NpgsqlSequenceValueGeneratorFactory(IUpdateSqlGenerator sqlGenerator)

#### Parameters

`sqlGenerator` IUpdateSqlGenerator

## Methods

### Create(IProperty, NpgsqlSequenceValueGeneratorState, INpgsqlRelationalConnection, IRawSqlCommandBuilder, 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 virtual ValueGenerator Create(IProperty property, NpgsqlSequenceValueGeneratorState generatorState, INpgsqlRelationalConnection connection, IRawSqlCommandBuilder rawSqlCommandBuilder, IRelationalCommandDiagnosticsLogger commandLogger)

#### Parameters

`property` IProperty
`generatorState` NpgsqlSequenceValueGeneratorState
`connection` INpgsqlRelationalConnection
`rawSqlCommandBuilder` IRawSqlCommandBuilder
`commandLogger` IRelationalCommandDiagnosticsLogger

#### Returns

ValueGenerator