dotbot/Core/DotbotDb.cs

19 lines
501 B
C#
Raw Permalink Normal View History

using Microsoft.EntityFrameworkCore;
namespace dotbot.Core
{
public class DotbotDb : DbContext
{
public DbSet<Definition> Defs { get; set; }
public DbSet<Email> Emails { get; set; }
2017-12-06 05:28:58 +00:00
public DbSet<UserLocation> UserLocations { get; set; }
public DbSet<Image> Images { get; set; }
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
optionsBuilder.UseSqlite("Data Source=dotbot.db");
}
}
}