using Microsoft.EntityFrameworkCore; namespace Pal.Client.Database; internal class PalClientContext : DbContext { public DbSet Locations { get; set; } = null!; public DbSet Imports { get; set; } = null!; public DbSet RemoteEncounters { get; set; } = null!; public PalClientContext(DbContextOptions options) : base(options) { } protected override void OnModelCreating(ModelBuilder modelBuilder) { modelBuilder.Entity() .HasMany(o => o.ImportedBy) .WithMany(o => o.ImportedLocations) .UsingEntity(o => o.ToTable("LocationImports")); } }