# Class NpgsqlHistoryRepository

Namespace
  Npgsql.EntityFrameworkCore.PostgreSQL.Migrations.Internal

Assembly
  Npgsql.EntityFrameworkCore.PostgreSQL.dll

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

    public class NpgsqlHistoryRepository : HistoryRepository, IHistoryRepository

Inheritance
  object
  HistoryRepository
  NpgsqlHistoryRepository

Implements
  IHistoryRepository

Inherited Members
  HistoryRepository.DefaultTableName
  HistoryRepository.Exists()
  HistoryRepository.ExistsAsync(CancellationToken)
  HistoryRepository.GetCreateScript()
  HistoryRepository.ConfigureTable(EntityTypeBuilder<HistoryRow>)
  HistoryRepository.GetAppliedMigrations()
  HistoryRepository.GetAppliedMigrationsAsync(CancellationToken)
  HistoryRepository.GetInsertScript(HistoryRow)
  HistoryRepository.GetDeleteScript(string)
  HistoryRepository.Dependencies
  HistoryRepository.SqlGenerationHelper
  HistoryRepository.TableName
  HistoryRepository.TableSchema
  HistoryRepository.MigrationIdColumnName
  HistoryRepository.ProductVersionColumnName
  HistoryRepository.GetAppliedMigrationsSql
  object.Equals(object)
  object.Equals(object, object)
  object.GetHashCode()
  object.GetType()
  object.MemberwiseClone()
  object.ReferenceEquals(object, object)
  object.ToString()

## Constructors

### NpgsqlHistoryRepository(HistoryRepositoryDependencies)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

    public NpgsqlHistoryRepository(HistoryRepositoryDependencies dependencies)

#### Parameters

`dependencies` HistoryRepositoryDependencies

## Properties

### ExistsSql

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

    protected override string ExistsSql { get; }

#### Property Value

string

## Methods

### GetBeginIfExistsScript(string)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

    public override string GetBeginIfExistsScript(string migrationId)

#### Parameters

`migrationId` string

#### Returns

string

### GetBeginIfNotExistsScript(string)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

    public override string GetBeginIfNotExistsScript(string migrationId)

#### Parameters

`migrationId` string

#### Returns

string

### GetCreateIfNotExistsScript()

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

    public override string GetCreateIfNotExistsScript()

#### Returns

string

### GetEndIfScript()

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

    public override string GetEndIfScript()

#### Returns

string

### InterpretExistsResult(object?)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

    protected override bool InterpretExistsResult(object? value)

#### Parameters

`value` object

#### Returns

bool