EntityFrameworkServiceCollectionExtensions
AddDbContext<TContext>(IServiceCollection, ServiceLifetime, ServiceLifetime)
AddDbContext<TContext>(IServiceCollection, Action<DbContextOptionsBuilder>, ServiceLifetime, ServiceLifetime)
AddDbContext<TContext>(IServiceCollection, Action<IServiceProvider, DbContextOptionsBuilder>, ServiceLifetime, ServiceLifetime)
AddDbContext<TContextService, TContextImplementation>(IServiceCollection, ServiceLifetime, ServiceLifetime)
AddDbContext<TContextService, TContextImplementation>(IServiceCollection, Action<DbContextOptionsBuilder>, ServiceLifetime, ServiceLifetime)
AddDbContext<TContextService, TContextImplementation>(IServiceCollection, Action<IServiceProvider, DbContextOptionsBuilder>, ServiceLifetime, ServiceLifetime)
AddDbContextFactory<TContext>(IServiceCollection, Action<DbContextOptionsBuilder>, ServiceLifetime)
AddDbContextFactory<TContext>(IServiceCollection, Action<IServiceProvider, DbContextOptionsBuilder>, ServiceLifetime)
AddDbContextFactory<TContext, TFactory>(IServiceCollection, Action<DbContextOptionsBuilder>, ServiceLifetime)
AddDbContextFactory<TContext, TFactory>(IServiceCollection, Action<IServiceProvider, DbContextOptionsBuilder>, ServiceLifetime)
AddDbContextPool<TContext>(IServiceCollection, Action<DbContextOptionsBuilder>, Int32)
AddDbContextPool<TContext>(IServiceCollection, Action<IServiceProvider, DbContextOptionsBuilder>, Int32)
AddDbContextPool<TContextService, TContextImplementation>(IServiceCollection, Action<DbContextOptionsBuilder>, Int32)
AddDbContextPool<TContextService, TContextImplementation>(IServiceCollection, Action<IServiceProvider, DbContextOptionsBuilder>, Int32)
AddPooledDbContextFactory<TContext>(IServiceCollection, Action<DbContextOptionsBuilder>, Int32)
AddPooledDbContextFactory<TContext>(IServiceCollection, Action<IServiceProvider, DbContextOptionsBuilder>, Int32)
ConfigureDbContext<TContext>(IServiceCollection, Action<DbContextOptionsBuilder>, ServiceLifetime)
ConfigureDbContext<TContext>(IServiceCollection, Action<IServiceProvider, DbContextOptionsBuilder>, ServiceLifetime)
net10.0-windows7.0
namespace Microsoft.Extensions.DependencyInjection
{
public static class EntityFrameworkServiceCollectionExtensions
{
public static IServiceCollection! AddDbContextPool<TContext>(this IServiceCollection! serviceCollection, Action<DbContextOptionsBuilder!>! optionsAction, int poolSize = 1024)
where TContext, DbContext!;
}
}
.NET | 8.09.010.0 |
---|---|
.NET Core | 2.02.12.2 |
Information specific to net10.0 | |
Platforms | This API is only available when you target a specific platform: |
Windows | 7.0 |
Information specific to net10.0-windows7.0 | |
Assembly | Microsoft.EntityFrameworkCore , Version=9.0.3.0, PublicKeyToken=adb9793829ddae60 |
Referencing | Your project needs a package reference to |
Package | Microsoft.EntityFrameworkCore (9.0.3) net8.0 |
Platform Restrictions | This API is supported on all platforms. |
- Built-in API
- Package-provided API