File: MigrationsEndPointOptions.cs
Web Access
Project: src\src\Middleware\Diagnostics.EntityFrameworkCore\src\Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore.csproj (Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
using Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore;
using Microsoft.AspNetCore.Http;
 
// ReSharper disable once CheckNamespace
namespace Microsoft.AspNetCore.Builder;
 
/// <summary>
/// Options for the <see cref="MigrationsEndPointMiddleware"/>.
/// </summary>
public class MigrationsEndPointOptions
{
    /// <summary>
    /// The default value for <see cref="Path"/>.
    /// </summary>
    public static PathString DefaultPath = new PathString("/ApplyDatabaseMigrations");
 
    /// <summary>
    /// Gets or sets the path that the <see cref="MigrationsEndPointMiddleware"/> will listen
    /// for requests to execute migrations commands.
    /// </summary>
    public virtual PathString Path { get; set; } = DefaultPath;
}