mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Use device report version 2 for the database.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user