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
Met ons samenwerken op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en controleren. Bekijk onze gids voor inzenders voor meer informatie.
Entity Framework