AspireSqlServerEFCoreSqlClientExtensions Class
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.
Extension methods for configuring EntityFrameworkCore DbContext to Azure SQL, MS SQL server
public static class AspireSqlServerEFCoreSqlClientExtensions
type AspireSqlServerEFCoreSqlClientExtensions = class
Public Module AspireSqlServerEFCoreSqlClientExtensions
- Inheritance
-
AspireSqlServerEFCoreSqlClientExtensions
Methods
AddSqlServerDbContext<TContext>(IHostApplicationBuilder, String, Action<MicrosoftEntityFrameworkCoreSqlServerSettings>, Action<DbContextOptionsBuilder>) |
Registers the given DbContext as a service in the services provided by the |
EnrichSqlServerDbContext<TContext>(IHostApplicationBuilder, Action<MicrosoftEntityFrameworkCoreSqlServerSettings>) |
Configures retries, health check, logging and telemetry for the DbContext. |