Migration.ActiveProvider Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.
Entity Framework feedback
Entity Framework is an open source project. Select a link to provide feedback: