Share via


RelationalDbContextOptionsBuilder<TBuilder,TExtension>.MigrationsAssembly Method

Definition

Overloads

MigrationsAssembly(Assembly)

Configures the assembly where migrations are maintained for this context.

MigrationsAssembly(String)

Configures the assembly where migrations are maintained for this context.

MigrationsAssembly(Assembly)

Source:
RelationalDbContextOptionsBuilder.cs

Configures the assembly where migrations are maintained for this context.

public virtual TBuilder MigrationsAssembly (System.Reflection.Assembly assembly);
abstract member MigrationsAssembly : System.Reflection.Assembly -> 'Builder
override this.MigrationsAssembly : System.Reflection.Assembly -> 'Builder
Public Overridable Function MigrationsAssembly (assembly As Assembly) As TBuilder

Parameters

assembly
Assembly

The Assembly where the migrations are located.

Returns

TBuilder

The same builder instance so that multiple calls can be chained.

Remarks

See Database migrations for more information and examples.

Applies to

MigrationsAssembly(String)

Source:
RelationalDbContextOptionsBuilder.cs
Source:
RelationalDbContextOptionsBuilder.cs
Source:
RelationalDbContextOptionsBuilder.cs
Source:
RelationalDbContextOptionsBuilder.cs
Source:
RelationalDbContextOptionsBuilder.cs
Source:
RelationalDbContextOptionsBuilder.cs
Source:
RelationalDbContextOptionsBuilder.cs
Source:
RelationalDbContextOptionsBuilder.cs
Source:
RelationalDbContextOptionsBuilder.cs

Configures the assembly where migrations are maintained for this context.

public virtual TBuilder MigrationsAssembly (string assemblyName);
public virtual TBuilder MigrationsAssembly (string? assemblyName);
abstract member MigrationsAssembly : string -> 'Builder
override this.MigrationsAssembly : string -> 'Builder
Public Overridable Function MigrationsAssembly (assemblyName As String) As TBuilder

Parameters

assemblyName
String

The name of the assembly.

Returns

TBuilder

The same builder instance so that multiple calls can be chained.

Remarks

See Database migrations for more information and examples.

Applies to