using Microsoft.EntityFrameworkCore; using Nocr.TextMatcher.AppServices.TextMatches; using Nocr.TextMatcher.AppServices.TextSubscriptions; using Nocr.TextMatcher.Persistence.TextMatches; using Nocr.TextMatcher.Persistence.TextSubscriptions; namespace Nocr.TextMatcher.Persistence; public class TextMatcherContext : DbContext { public DbSet TextSubscriptions { get; set; } public DbSet TextMatches { get; set; } public TextMatcherContext(DbContextOptions options) : base(options) { } protected override void OnModelCreating(ModelBuilder modelBuilder) { modelBuilder.ApplyConfiguration(new TextSubscriptionConfiguration()); modelBuilder.ApplyConfiguration(new TextMatchConfiguration()); base.OnModelCreating(modelBuilder); } }