DefaultDbContext.cs 459 B

1234567891011121314
  1. using Microsoft.EntityFrameworkCore;
  2. using bitforum.Models;
  3. using bitforum.Models.Page;
  4. using bitforum.Models.Page.Faq;
  5. public class DefaultDbContext : DbContext
  6. {
  7. public DefaultDbContext(DbContextOptions<DefaultDbContext> options) : base(options) { }
  8. public DbSet<Config> Config { get; set; }
  9. public DbSet<Document> Document { get; set; }
  10. public DbSet<FaqCategory> FaqCategory { get; set; }
  11. public DbSet<FaqItem> FaqItem { get; set; }
  12. }