using Microsoft.EntityFrameworkCore; using ModelsLib; using ModelsLib.BDD_Models; using System.Collections.Generic; public class PhotoShareDbContext : DbContext { public PhotoShareDbContext(DbContextOptions options) : base(options) { } protected override void OnModelCreating(ModelBuilder modelBuilder) { modelBuilder.Entity().ToTable("T_Params"); modelBuilder.Entity().ToTable("T_ShootingData"); modelBuilder.Entity().ToTable("T_DesireData"); } public DbSet ConfigDb { get; set; } public DbSet ShootingDb { get; set; } public DbSet DesireDb { get; set; } }