Initial commit
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user