RGDataContextAddDbContextPoolTypeTContextService, TContextImplementation Method

Adds the type of the database context pool.

Definition

Namespace: Recrovit.RecroGridFramework.Data
Assembly: Recrovit.RecroGrid (in Recrovit.RecroGrid.dll) Version: 6.6.0.24.0320.1
C#
public static void AddDbContextPoolType<TContextService, TContextImplementation>()
where TContextService : class
where TContextImplementation : DbContext, TContextService

Type Parameters

TContextService
The class or interface that will be used to resolve the context from the container.
TContextImplementation
The concrete implementation type to create.

See Also