25 lines
670 B
C#
25 lines
670 B
C#
using Lutra.Application.Interfaces;
|
|
using Lutra.Domain.Entities;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace Lutra.Infrastructure.Sql;
|
|
|
|
public class LutraDbContext : DbContext, ILutraDbContext
|
|
{
|
|
public LutraDbContext(DbContextOptions<LutraDbContext> options)
|
|
: base(options)
|
|
{
|
|
}
|
|
|
|
public DbSet<Supermarkt> Supermarkten => Set<Supermarkt>();
|
|
|
|
public DbSet<Verspakket> Verspaketten => Set<Verspakket>();
|
|
|
|
public DbSet<Beoordeling> Beoordelingen => Set<Beoordeling>();
|
|
|
|
public override Task<int> SaveChangesAsync(CancellationToken cancellationToken = default)
|
|
{
|
|
return base.SaveChangesAsync(cancellationToken);
|
|
}
|
|
}
|