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
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.
Entity Framework