AspireAzureEFCoreCosmosExtensions
Classstaticnet10.0
Extension methods for configuring EntityFrameworkCore DbContext to Azure Cosmos DB
namespace Microsoft.Extensions.Hosting;
public static class AspireAzureEFCoreCosmosExtensions{ // ...}Methods3
Section titled Methods Registers the given
EntityFrameworkCore.DbContext as a service in the services provided by the builder. Derives the name of the database from the connection string. Registers the given
EntityFrameworkCore.DbContext as a service in the services provided by the builder. Enables db context pooling, logging and telemetry. Configures logging and telemetry for the
EntityFrameworkCore.DbContext.