Share via


Migration.ActiveProvider Property

Definition

The name of the current database provider.

public virtual string ActiveProvider { get; set; }
public virtual string? ActiveProvider { get; set; }
member this.ActiveProvider : string with get, set
Public Overridable Property ActiveProvider As String

Property Value

Remarks

This can be used to write conditional code in the migration such that different changes can be made to the database depending on the type of database being used.

See Database migrations for more information and examples.

Applies to