using Microsoft.EntityFrameworkCore; using Portfolio.Shared.Models; namespace Portfolio.Api; public class DatabaseContext(DbContextOptions options) : DbContext(options) { public DbSet Projects { get; set; } public DbSet Languages { get; set; } public DbSet Technologies { get; set; } public DbSet Timeline { get; set; } public DbSet About { get; set; } protected override void OnModelCreating(ModelBuilder modelBuilder) { modelBuilder.Entity() .HasMany(p => p.Languages) .WithMany() .UsingEntity("LanguageProject"); } }