18 lines
397 B
C#
18 lines
397 B
C#
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace DG.EntityFramework
|
|
{
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <typeparam name="TDbContext"></typeparam>
|
|
public interface IDbContextProvider<out TDbContext>
|
|
where TDbContext : DbContext
|
|
{
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
TDbContext GetDbContext();
|
|
}
|
|
} |