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