using Microsoft.EntityFrameworkCore; namespace Wallet.Data; public class WalletContext(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(); } }