Use device report version 2 for the database.

This commit is contained in:
2018-11-26 23:16:54 +00:00
parent 9a746909d7
commit ad5c633180
46 changed files with 1718 additions and 4685 deletions

View File

@@ -30,15 +30,21 @@
// Copyright © 2011-2018 Natalia Portillo
// ****************************************************************************/
using DiscImageChef.CommonTypes.Metadata;
using DiscImageChef.Database.Models;
using Microsoft.EntityFrameworkCore;
namespace DiscImageChef.Database
{
public class DicContext : DbContext
public sealed class DicContext : DbContext
{
public DbSet<Device> Devices { get; set; }
public DbSet<Device> Reports { get; set; }
public DbSet<DeviceReportV2> Reports { get; set; }
public DicContext()
{
Database.EnsureCreated();
}
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{