using Microsoft.EntityFrameworkCore; namespace Bitvault.Data; public class LockerContext(DbContextOptions options) : DbContext(options) { public DbSet Blobs { get; set; } public DbSet Items { get; set; } public DbSet Tags { get; set; } protected override void OnModelCreating(ModelBuilder modelBuilder) { modelBuilder.Entity() .HasMany(x => x.Tags) .WithOne(); modelBuilder.Entity() .HasMany(x => x.Blobs) .WithOne(); } }