Migration.ActiveProvider Property
Definition
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
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework