Compartilhar via


RelationalOptionsExtension.WithMigrationsAssembly(String) Método

Definição

Cria uma nova instância com todas as opções da mesma forma que para essa instância, mas com a opção fornecida alterada. É incomum chamar esse método diretamente. Use 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

Parâmetros

migrationsAssembly
String

A opção a ser alterada.

Retornos

Uma nova instância com a opção alterada.

Aplica-se a