Aspire.Hosting.EntityFrameworkCore
Official
📦 Aspire.Hosting.EntityFrameworkCore v13.4.0-preview.1.26281.18 7 Functions
1 Types
1 types and 20 members
Types
Functions
method
addEFMigrations builder Adds EF Core migration management for polyglot app hosts.
addEFMigrations(name: string, dbContextTypeName?: string): EFMigrationResource method
publishAsMigrationBundle builder Configures the EF migration resource to generate a migration bundle during publishing.
publishAsMigrationBundle(targetRuntime?: string, selfContained?: boolean, publishContainer?: boolean, baseImage?: string): EFMigrationResource method
publishAsMigrationScript builder Configures the EF migration resource to generate a migration script during publishing.
publishAsMigrationScript(idempotent?: boolean, noTransactions?: boolean): EFMigrationResource method
runDatabaseUpdateOnStart builder Configures the EF migration resource to run database update when the AppHost starts.
runDatabaseUpdateOnStart(): EFMigrationResource method
withMigrationNamespace builder Configures the namespace for new migrations created with the Add Migration command.
withMigrationNamespace(namespace: string): EFMigrationResource method
withMigrationOutputDirectory builder Configures the output directory for new migrations created with the Add Migration command.
withMigrationOutputDirectory(outputDirectory: string): EFMigrationResource method
withMigrationsProject builder Configures a separate project containing migrations for polyglot app hosts.
withMigrationsProject(migrationsProject?: ProjectResource): EFMigrationResource