using Microsoft.AspNetCore.Identity; using Microsoft.EntityFrameworkCore; using System.ComponentModel.DataAnnotations; namespace DamageAssesment.Api.Questions.Db { public class QuestionDbContext : DbContext { public DbSet Questions { get; set; } public DbSet QuestionTypes { get; set; } public DbSet QuestionsTranslations { get; set; } public DbSet QuestionCategories { get; set; } public QuestionDbContext(DbContextOptions options) : base(options) { } //protected override void OnModelCreating(ModelBuilder modelBuilder) //{ // modelBuilder.Entity() // .HasOne(a => a.QuestionType) // .WithOne(b => b.Question) // .HasForeignKey(b => b.QuestionTypeID); //} } }