BanTurContext.cs 563 B

123456789101112131415161718
  1. using BanTur.Core.Entity;
  2. using BanTur.Core.Utility;
  3. using Microsoft.EntityFrameworkCore;
  4. namespace BanTur.Core.EntityFramework
  5. {
  6. internal class BanTurContext : DbContext
  7. {
  8. public DbSet<FeedSource> FeedSources { get; set; }
  9. public DbSet<BangumiEntry> BangumiEntries { get; set; }
  10. public DbSet<ConfigEntry> ConfigEntries { get; set; }
  11. protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
  12. {
  13. optionsBuilder.UseSqlite("Data Source=" + PathHelper.DbFilePath);
  14. }
  15. }
  16. }