19 lines
501 B
C#
19 lines
501 B
C#
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace dotbot.Core
|
|
{
|
|
public class DotbotDb : DbContext
|
|
{
|
|
public DbSet<Definition> Defs { get; set; }
|
|
public DbSet<Email> Emails { get; set; }
|
|
public DbSet<UserLocation> UserLocations { get; set; }
|
|
public DbSet<Image> Images { get; set; }
|
|
|
|
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
|
{
|
|
optionsBuilder.UseSqlite("Data Source=dotbot.db");
|
|
}
|
|
}
|
|
|
|
}
|