Move NameValue statistics to database.

This commit is contained in:
2018-12-21 03:17:35 +00:00
parent ccc249261f
commit a7721f943a
15 changed files with 1588 additions and 211 deletions

View File

@@ -37,13 +37,19 @@ namespace DiscImageChef.Database
{
public sealed class DicContext : DbContext
{
// Note: If table does not appear check that last migration has been REALLY added to the project
public DicContext()
{
Database.Migrate();
}
public DbSet<Device> Devices { get; set; }
public DbSet<Report> Reports { get; set; }
public DbSet<Device> Devices { get; set; }
public DbSet<Report> Reports { get; set; }
public DbSet<Command> Commands { get; set; }
public DbSet<Filesystem> Filesystems { get; set; }
public DbSet<Filter> Filters { get; set; }
public DbSet<MediaFormat> MediaFormats { get; set; }
public DbSet<Partition> Partitions { get; set; }
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{