共用方式為


RelationalOptionsExtension.WithMigrationsAssembly(String) 方法

定義

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

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

參數

migrationsAssembly
String

要變更的選項。

傳回

選項已變更的新實例。

適用於