Skip to content

Commit

Permalink
New docs for context creation and initialization
Browse files Browse the repository at this point in the history
Draft

Fixes #594
Part of #876
Fixes #1390
Fixes #1923
Fixes #2241
Part of #2523
Part of #2549
Part of #1832

Let's discuss where this page should go and what goes underneath it. We had previously decided to keep this in Miscellaneous, but I now believe this would be better as a top-level item with the following subsections to go into more detail:

- DbContext lifetime, configuration and initialization
  - Overview
  - Connection strings
  - Using dependency injection
  - Connection resiliency
  - Context pooling
  • Loading branch information
ajcvickers committed Nov 9, 2020
1 parent 673f5f8 commit a1a778d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entity-framework/core/miscellaneous/configuring-dbcontext.md
Original file line number Diff line number Diff line change
Expand Up @@ -279,11 +279,11 @@ The following table contains examples of common methods called on `DbContextOpti
| <xref:Microsoft.EntityFrameworkCore.DbContextOptionsBuilder.EnableDetailedErrors%2A> | More detailed query errors (at the expense of performance) | [_Logging, events, and diagnostics_](xref:core/miscellaneous/logging)
| <xref:Microsoft.EntityFrameworkCore.DbContextOptionsBuilder.ConfigureWarnings%2A> | Ignore or throw for warnings and other events | [_Logging, events, and diagnostics_](xref:core/miscellaneous/logging)
| <xref:Microsoft.EntityFrameworkCore.DbContextOptionsBuilder.AddInterceptors%2A> | Registers EF Core interceptors | [_Logging, events, and diagnostics_](xref:core/miscellaneous/logging)
| <xref:Microsoft.EntityFrameworkCore.ProxiesExtensions.UseLazyLoadingProxies> | Use dynamic proxies for lazy-loading | [_Lazy loading_)](xref:core/querying/related-data/lazy)
| <xref:Microsoft.EntityFrameworkCore.ProxiesExtensions.UseLazyLoadingProxies%2A> | Use dynamic proxies for lazy-loading | [_Lazy loading_)](xref:core/querying/related-data/lazy)
| `UseChangeTrackingProxies()` <!-- Issue #2748 --> | Use dynamic proxies for change-tracking | Coming soon...

> [!NOTE]
> <xref:Microsoft.EntityFrameworkCore.ProxiesExtensions.UseLazyLoadingProxies%2A> and <xref:Microsoft.EntityFrameworkCore.ProxiesExtensions.UseChangeTrackingProxies%2A> are extension methods from the [Microsoft.EntityFrameworkCore.Proxies](https://www.nuget.org/packages/Microsoft.EntityFrameworkCore.Proxies/) NuGet package. This kind of ".UseSomething()" call is the recommended way to configure and/or use EF Core extensions contained in other packages.
> <xref:Microsoft.EntityFrameworkCore.ProxiesExtensions.UseLazyLoadingProxies%2A> and `UseChangeTrackingProxies()` <!-- Issue #2748 --> are extension methods from the [Microsoft.EntityFrameworkCore.Proxies](https://www.nuget.org/packages/Microsoft.EntityFrameworkCore.Proxies/) NuGet package. This kind of ".UseSomething()" call is the recommended way to configure and/or use EF Core extensions contained in other packages.
### `DbContextOptions` verses `DbContextOptions<TContext>`

Expand Down

0 comments on commit a1a778d

Please sign in to comment.