17 lines
493 B
C#
17 lines
493 B
C#
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.Extensions.Logging;
|
|
|
|
namespace FictionArchive.Service.Shared.Services;
|
|
|
|
/// <summary>
|
|
/// Abstract DbContext handling boilerplate shared between our contexts. Should not share actual data.
|
|
/// </summary>
|
|
public abstract class FictionArchiveDbContext : DbContext
|
|
{
|
|
protected readonly ILogger _logger;
|
|
|
|
protected FictionArchiveDbContext(DbContextOptions options, ILogger logger) : base(options)
|
|
{
|
|
_logger = logger;
|
|
}
|
|
} |