mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Correct database sets.
This commit is contained in:
@@ -30,7 +30,6 @@
|
||||
// Copyright © 2011-2018 Natalia Portillo
|
||||
// ****************************************************************************/
|
||||
|
||||
using DiscImageChef.CommonTypes.Metadata;
|
||||
using DiscImageChef.Database.Models;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
@@ -38,14 +37,14 @@ namespace DiscImageChef.Database
|
||||
{
|
||||
public sealed class DicContext : DbContext
|
||||
{
|
||||
public DbSet<Device> Devices { get; set; }
|
||||
public DbSet<DeviceReportV2> Reports { get; set; }
|
||||
|
||||
public DicContext()
|
||||
{
|
||||
Database.Migrate();
|
||||
}
|
||||
|
||||
public DbSet<Device> Devices { get; set; }
|
||||
public DbSet<Report> Reports { get; set; }
|
||||
|
||||
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
||||
{
|
||||
optionsBuilder.UseSqlite("Data Source=discimagechef.db");
|
||||
|
||||
Reference in New Issue
Block a user