mirror of
https://github.com/alex289/CleanArchitecture.git
synced 2025-06-30 10:33:43 +00:00
21 lines
725 B
C#
21 lines
725 B
C#
using CleanArchitecture.Domain.DomainNotifications;
|
|
using CleanArchitecture.Infrastructure.Configurations.EventSourcing;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace CleanArchitecture.Infrastructure.Database;
|
|
|
|
public class DomainNotificationStoreDbContext : DbContext
|
|
{
|
|
public virtual DbSet<StoredDomainNotification> StoredDomainNotifications { get; set; } = null!;
|
|
|
|
public DomainNotificationStoreDbContext(DbContextOptions<DomainNotificationStoreDbContext> options) : base(options)
|
|
{
|
|
}
|
|
|
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
|
{
|
|
base.OnModelCreating(modelBuilder);
|
|
|
|
modelBuilder.ApplyConfiguration(new StoredDomainNotificationConfiguration());
|
|
}
|
|
} |