Interface IMigrationProviderSetup
Provides setup configuration for a database provider's DbContext options.
Namespace: Umbraco.Cms.Persistence.EFCore.Migrations
Assembly: Umbraco.Cms.Persistence.EFCore.dll
Syntax
public interface IMigrationProviderSetup
Properties
View SourceProviderName
Gets the name of the database provider this setup supports.
Declaration
string ProviderName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
View SourceSetup(DbContextOptionsBuilder, string?)
Configures the DbContext options builder for the specific database provider.
Declaration
void Setup(DbContextOptionsBuilder builder, string? connectionString)
Parameters
| Type | Name | Description |
|---|---|---|
| DbContextOptionsBuilder | builder | The DbContext options builder to configure. |
| string | connectionString | The connection string to use. |