# Aspire.Hosting.EntityFrameworkCore

- Module: `Aspire.Hosting.EntityFrameworkCore`
- Version: `13.4.0-preview.1.26281.18`
- Source: [GitHub](https://github.com/microsoft/aspire)
- Functions: `7`
- Types: `1`

## Types

- [EFMigrationResource](/reference/api/typescript/aspire.hosting.entityframeworkcore/efmigrationresource.md) -- `handle` - 26 members -- Represents an EF Core migration resource associated with a project.

## Functions

- [addEFMigrations](/reference/api/typescript/aspire.hosting.entityframeworkcore/addefmigrations.md) -- `method` -- Adds EF Core migration management for polyglot app hosts.
- [publishAsMigrationBundle](/reference/api/typescript/aspire.hosting.entityframeworkcore/publishasmigrationbundle.md) -- `method` -- Configures the EF migration resource to generate a migration bundle during publishing.
- [publishAsMigrationScript](/reference/api/typescript/aspire.hosting.entityframeworkcore/publishasmigrationscript.md) -- `method` -- Configures the EF migration resource to generate a migration script during publishing.
- [runDatabaseUpdateOnStart](/reference/api/typescript/aspire.hosting.entityframeworkcore/rundatabaseupdateonstart.md) -- `method` -- Configures the EF migration resource to run database update when the AppHost starts.
- [withMigrationNamespace](/reference/api/typescript/aspire.hosting.entityframeworkcore/withmigrationnamespace.md) -- `method` -- Configures the namespace for new migrations created with the Add Migration command.
- [withMigrationOutputDirectory](/reference/api/typescript/aspire.hosting.entityframeworkcore/withmigrationoutputdirectory.md) -- `method` -- Configures the output directory for new migrations created with the Add Migration command.
- [withMigrationsProject](/reference/api/typescript/aspire.hosting.entityframeworkcore/withmigrationsproject.md) -- `method` -- Configures a separate project containing migrations for polyglot app hosts.
