2017-12-05 05:59:37 +00:00
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
|
|
|
|
|
namespace dotbot.Core
|
|
|
|
|
{
|
2017-12-09 05:59:43 +00:00
|
|
|
|
public class DotbotDb : DbContext
|
2017-12-05 05:59:37 +00:00
|
|
|
|
{
|
|
|
|
|
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; }
|
2017-12-09 04:39:19 +00:00
|
|
|
|
public DbSet<Image> Images { get; set; }
|
2017-12-05 05:59:37 +00:00
|
|
|
|
|
|
|
|
|
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
|
|
|
|
{
|
|
|
|
|
optionsBuilder.UseSqlite("Data Source=dotbot.db");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|