Skip to main content
.NET API Catalog
  • Browse
  • Search
  • Diff
  • Others
    Feature Usage Stats Top APIs
    Version Source
  1. Catalog
  2. Microsoft.EntityFrameworkCore.Migrations
  3. HistoryRepository
  4. EnsureModel()
  • HistoryRepository
    • DefaultTableName
    • HistoryRepository(HistoryRepositoryDependencies)
    • Dependencies
    • ExistsSql
    • GetAppliedMigrationsSql
    • LockReleaseBehavior
    • MigrationIdColumnName
    • ProductVersionColumnName
    • SqlGenerationHelper
    • TableName
    • TableSchema
    • AcquireDatabaseLock()
    • AcquireDatabaseLockAsync(CancellationToken)
    • ConfigureTable(EntityTypeBuilder<HistoryRow>)
    • Create()
    • CreateAsync(CancellationToken)
    • EnsureModel()
    • Exists()
    • ExistsAsync(CancellationToken)
    • GetAppliedMigrations()
    • GetAppliedMigrationsAsync(CancellationToken)
    • GetBeginIfExistsScript(String)
    • GetBeginIfNotExistsScript(String)
    • GetCreateCommands()
    • GetCreateIfNotExistsScript()
    • GetCreateScript()
    • GetDeleteScript(String)
    • GetEndIfScript()
    • GetInsertScript(HistoryRow)
    • InterpretExistsResult(Object)
net11.0
namespace Microsoft.EntityFrameworkCore.Migrations
{
    public abstract class HistoryRepository : IHistoryRepository
    {
        [EntityFrameworkInternal]
        protected virtual IModel! EnsureModel();
    }
}
.NET
11.0
Information specific to net11.0
Assembly

Microsoft.EntityFrameworkCore.Relational , Version=11.0.0.0, PublicKeyToken=adb9793829ddae60

Referencing

Your project needs a package reference to Microsoft.EntityFrameworkCore.Relational.

Package Microsoft.EntityFrameworkCore.Relational (11.0.0-preview.5.26302.115) net11.0
Preview This API is contained in a prerelease package.
Platform Restrictions

This API is supported on all platforms.

  • Built-in API
  • Package-provided API
Search

06/22/2026
An error has occurred. This application may no longer respond until reloaded. Reload 🗙