# Interface INpgsqlSequenceValueGeneratorFactory

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 interface INpgsqlSequenceValueGeneratorFactory

## Methods

### TryCreate(IProperty, Type, 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.

    ValueGenerator? TryCreate(IProperty property, Type clrType, NpgsqlSequenceValueGeneratorState generatorState, INpgsqlRelationalConnection connection, IRawSqlCommandBuilder rawSqlCommandBuilder, IRelationalCommandDiagnosticsLogger commandLogger)

#### Parameters

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

#### Returns

ValueGenerator