我正在阅读EntityFramework Core Code on Github并且我不明白下面使用了这个(documentation):
public static IServiceCollection AddDbContext<TContext>(
[NotNull] this IServiceCollection serviceCollection,
ServiceLifetime contextLifetime)
where TContext : DbContext
=> AddDbContext<TContext>(serviceCollection, (Action<IServiceProvider, DbContextOptionsBuilder>)null, contextLifetime);