Skip to content

Commit

Permalink
Update docs for config methods handled by AddDbContext* ones (#19654)
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccallum authored and ajcvickers committed Jan 22, 2020
1 parent 8d4166c commit cbb5928
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/EFCore/DbContextOptionsBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,8 @@ public virtual DbContextOptionsBuilder UseModel([NotNull] IModel model)
/// for logging done by this context.
/// </para>
/// <para>
/// There is no need to call this method when using one of the 'AddDbContext' methods.
/// 'AddDbContext' will ensure that the <see cref="ILoggerFactory" /> used by EF is obtained from the
/// application service provider.
/// There is no need to call this method when using one of the 'AddDbContext' methods, including 'AddDbContextPool'.
/// These methods ensure that the <see cref="ILoggerFactory" /> used by EF is obtained from the application service provider.
/// </para>
/// <para>
/// This method cannot be used if the application is setting the internal service provider
Expand Down Expand Up @@ -399,7 +398,8 @@ public virtual DbContextOptionsBuilder UseInternalServiceProvider([CanBeNull] IS

/// <summary>
/// Sets the <see cref="IServiceProvider" /> from which application services will be obtained. This
/// is done automatically when using 'AddDbContext', so it is rare that this method needs to be called.
/// is done automatically when using 'AddDbContext' or 'AddDbContextPool',
/// so it is rare that this method needs to be called.
/// </summary>
/// <param name="serviceProvider"> The service provider to be used. </param>
/// <returns> The same builder instance so that multiple calls can be chained. </returns>
Expand Down

0 comments on commit cbb5928

Please sign in to comment.