Click or drag to resize

RGDataContextAddDbContextPoolTypeTContextService, TContextImplementation Method

Adds the type of the database context pool.

Namespace:  Recrovit.RecroGridFramework.Data
Assembly:  Recrovit.RecroGrid (in Recrovit.RecroGrid.dll) Version: 2.6.0
Syntax
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