Show / Hide Table of Contents

    Class MigrationsMiddleware

    Middleware for executing database migration.

    Inheritance
    System.Object
    MigrationsMiddleware
    Namespace: Kros.KORM.Migrations.Middleware
    Assembly: Kros.KORM.Extensions.Asp.dll
    Syntax
    public class MigrationsMiddleware

    Constructors

    MigrationsMiddleware(RequestDelegate, IMemoryCache, MigrationMiddlewareOptions)

    Initializes a new instance of the MigrationsMiddleware class.

    Declaration
    public MigrationsMiddleware(RequestDelegate next, IMemoryCache cache, MigrationMiddlewareOptions options)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Http.RequestDelegate next

    The next delegate.

    Microsoft.Extensions.Caching.Memory.IMemoryCache cache

    Memory cache.

    MigrationMiddlewareOptions options

    Migration options.

    Methods

    Invoke(HttpContext, IMigrationsRunner)

    Invokes the specified context.

    Declaration
    public Task Invoke(HttpContext context, IMigrationsRunner migrationsRunner)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Http.HttpContext context

    The context.

    Kros.KORM.Migrations.IMigrationsRunner migrationsRunner

    Migrations runner.

    Returns
    Type Description
    System.Threading.Tasks.Task
    Back to top KROS a.s.