Table of Contents

Class DbContextResolver<TDbContext>

Namespace
JsonApiDotNetCore.Repositories
Assembly
JsonApiDotNetCore.dll

Provides a method to resolve a DbContext.

[PublicAPI]
public sealed class DbContextResolver<TDbContext> : IDbContextResolver where TDbContext : DbContext

Type Parameters

TDbContext

The type of the DbContext to resolve.

Inheritance
DbContextResolver<TDbContext>
Implements
Inherited Members

Constructors

DbContextResolver(TDbContext)

public DbContextResolver(TDbContext dbContext)

Parameters

dbContext TDbContext

Methods

GetContext()

public DbContext GetContext()

Returns

DbContext

GetTypedContext()

public TDbContext GetTypedContext()

Returns

TDbContext