# Class NpgsqlValueGenerationStrategyExtensions

Namespace
  Npgsql.EntityFrameworkCore.PostgreSQL.Metadata

Assembly
  Npgsql.EntityFrameworkCore.PostgreSQL.dll

Extension methods over NpgsqlValueGenerationStrategy.

    public static class NpgsqlValueGenerationStrategyExtensions

Inheritance
  object
  NpgsqlValueGenerationStrategyExtensions

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

## Methods

### IsIdentity(NpgsqlValueGenerationStrategy)

Whether the given strategy is either IdentityByDefaultColumn or IdentityAlwaysColumn.

    public static bool IsIdentity(this NpgsqlValueGenerationStrategy strategy)

#### Parameters

`strategy` NpgsqlValueGenerationStrategy

#### Returns

bool

### IsIdentity(NpgsqlValueGenerationStrategy?)

Whether the given strategy is either IdentityByDefaultColumn or IdentityAlwaysColumn.

    public static bool IsIdentity(this NpgsqlValueGenerationStrategy? strategy)

#### Parameters

`strategy` NpgsqlValueGenerationStrategy?

#### Returns

bool