共用方式為


RelationalOptionsExtension.WithMigrationsHistoryTableName(String) 方法

定義

使用與這個實例相同的所有選項建立新的實例,但已變更指定的選項。 直接呼叫這個方法並不常見。 請改用 DbContextOptionsBuilder

public virtual Microsoft.EntityFrameworkCore.Infrastructure.RelationalOptionsExtension WithMigrationsHistoryTableName (string migrationsHistoryTableName);
public virtual Microsoft.EntityFrameworkCore.Infrastructure.RelationalOptionsExtension WithMigrationsHistoryTableName (string? migrationsHistoryTableName);
abstract member WithMigrationsHistoryTableName : string -> Microsoft.EntityFrameworkCore.Infrastructure.RelationalOptionsExtension
override this.WithMigrationsHistoryTableName : string -> Microsoft.EntityFrameworkCore.Infrastructure.RelationalOptionsExtension
Public Overridable Function WithMigrationsHistoryTableName (migrationsHistoryTableName As String) As RelationalOptionsExtension

參數

migrationsHistoryTableName
String

要變更的選項。

傳回

選項已變更的新實例。

適用於