mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Add fields for GD-ROM reading capabilities report using swap disc trick.
This commit is contained in:
2
.idea/.idea.Aaru/.idea/contentModel.xml
generated
2
.idea/.idea.Aaru/.idea/contentModel.xml
generated
@@ -414,6 +414,8 @@
|
|||||||
<e p="20200710140320_FixIndexes.cs" t="Include" />
|
<e p="20200710140320_FixIndexes.cs" t="Include" />
|
||||||
<e p="20200710164101_AddCanReadGdRomUsingSwapDisc.Designer.cs" t="Include" />
|
<e p="20200710164101_AddCanReadGdRomUsingSwapDisc.Designer.cs" t="Include" />
|
||||||
<e p="20200710164101_AddCanReadGdRomUsingSwapDisc.cs" t="Include" />
|
<e p="20200710164101_AddCanReadGdRomUsingSwapDisc.cs" t="Include" />
|
||||||
|
<e p="20200710170129_AddGdRomSwapDiscCapabilities.Designer.cs" t="Include" />
|
||||||
|
<e p="20200710170129_AddGdRomSwapDiscCapabilities.cs" t="Include" />
|
||||||
<e p="AaruContextModelSnapshot.cs" t="Include" />
|
<e p="AaruContextModelSnapshot.cs" t="Include" />
|
||||||
</e>
|
</e>
|
||||||
<e p="Models" t="Include">
|
<e p="Models" t="Include">
|
||||||
|
|||||||
Submodule Aaru.CommonTypes updated: f3329ce214...1fe35b7d39
@@ -112,6 +112,8 @@
|
|||||||
<Compile Include="Migrations\20200710140320_FixIndexes.Designer.cs" />
|
<Compile Include="Migrations\20200710140320_FixIndexes.Designer.cs" />
|
||||||
<Compile Include="Migrations\20200710164101_AddCanReadGdRomUsingSwapDisc.cs" />
|
<Compile Include="Migrations\20200710164101_AddCanReadGdRomUsingSwapDisc.cs" />
|
||||||
<Compile Include="Migrations\20200710164101_AddCanReadGdRomUsingSwapDisc.Designer.cs" />
|
<Compile Include="Migrations\20200710164101_AddCanReadGdRomUsingSwapDisc.Designer.cs" />
|
||||||
|
<Compile Include="Migrations\20200710170129_AddGdRomSwapDiscCapabilities.cs" />
|
||||||
|
<Compile Include="Migrations\20200710170129_AddGdRomSwapDiscCapabilities.Designer.cs" />
|
||||||
<Compile Include="Migrations\AaruContextModelSnapshot.cs" />
|
<Compile Include="Migrations\AaruContextModelSnapshot.cs" />
|
||||||
<Compile Include="Models\BaseModel.cs" />
|
<Compile Include="Models\BaseModel.cs" />
|
||||||
<Compile Include="Models\BaseOperatingSystem.cs" />
|
<Compile Include="Models\BaseOperatingSystem.cs" />
|
||||||
|
|||||||
2457
Aaru.Database/Migrations/20200710170129_AddGdRomSwapDiscCapabilities.Designer.cs
generated
Normal file
2457
Aaru.Database/Migrations/20200710170129_AddGdRomSwapDiscCapabilities.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,161 @@
|
|||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
namespace Aaru.Database.Migrations
|
||||||
|
{
|
||||||
|
public partial class AddGdRomSwapDiscCapabilities : Migration
|
||||||
|
{
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.AddColumn<int>("GdRomSwapDiscCapabilitiesId", "Reports", nullable: true);
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<int>("GdRomSwapDiscCapabilitiesId", "Devices", nullable: true);
|
||||||
|
|
||||||
|
migrationBuilder.CreateTable("GdRomSwapDiscCapabilities", table => new
|
||||||
|
{
|
||||||
|
Id = table.Column<int>(nullable: false).Annotation("Sqlite:Autoincrement", true),
|
||||||
|
RecognizedSwapDisc = table.Column<bool>(nullable: false),
|
||||||
|
SwapDiscLeadOutPMIN = table.Column<byte>(nullable: false),
|
||||||
|
SwapDiscLeadOutPSEC = table.Column<byte>(nullable: false),
|
||||||
|
SwapDiscLeadOutPFRAM = table.Column<byte>(nullable: false),
|
||||||
|
SwapDiscLeadOutStart = table.Column<int>(nullable: false),
|
||||||
|
Lba0Readable = table.Column<bool>(nullable: false), Lba0Data = table.Column<byte[]>(nullable: true),
|
||||||
|
Lba0Sense = table.Column<byte[]>(nullable: true),
|
||||||
|
Lba0DecodedSense = table.Column<string>(nullable: true),
|
||||||
|
Lba0ScrambledReadable = table.Column<bool>(nullable: false),
|
||||||
|
Lba0ScrambledData = table.Column<byte[]>(nullable: true),
|
||||||
|
Lba0ScrambledSense = table.Column<byte[]>(nullable: true),
|
||||||
|
Lba0ScrambledDecodedSense = table.Column<string>(nullable: true),
|
||||||
|
Lba44990Readable = table.Column<bool>(nullable: false),
|
||||||
|
Lba44990Data = table.Column<byte[]>(nullable: true),
|
||||||
|
Lba44990Sense = table.Column<byte[]>(nullable: true),
|
||||||
|
Lba44990DecodedSense = table.Column<string>(nullable: true),
|
||||||
|
Lba44990ReadableCluster = table.Column<int>(nullable: false),
|
||||||
|
Lba45000Readable = table.Column<bool>(nullable: false),
|
||||||
|
Lba45000Data = table.Column<byte[]>(nullable: true),
|
||||||
|
Lba45000Sense = table.Column<byte[]>(nullable: true),
|
||||||
|
Lba45000DecodedSense = table.Column<string>(nullable: true),
|
||||||
|
Lba45000ReadableCluster = table.Column<int>(nullable: false),
|
||||||
|
Lba50000Readable = table.Column<bool>(nullable: false),
|
||||||
|
Lba50000Data = table.Column<byte[]>(nullable: true),
|
||||||
|
Lba50000Sense = table.Column<byte[]>(nullable: true),
|
||||||
|
Lba50000DecodedSense = table.Column<string>(nullable: true),
|
||||||
|
Lba50000ReadableCluster = table.Column<int>(nullable: false),
|
||||||
|
Lba100000Readable = table.Column<bool>(nullable: false),
|
||||||
|
Lba100000Data = table.Column<byte[]>(nullable: true),
|
||||||
|
Lba100000Sense = table.Column<byte[]>(nullable: true),
|
||||||
|
Lba100000DecodedSense = table.Column<string>(nullable: true),
|
||||||
|
Lba100000ReadableCluster = table.Column<int>(nullable: false),
|
||||||
|
Lba400000Readable = table.Column<bool>(nullable: false),
|
||||||
|
Lba400000Data = table.Column<byte[]>(nullable: true),
|
||||||
|
Lba400000Sense = table.Column<byte[]>(nullable: true),
|
||||||
|
Lba400000DecodedSense = table.Column<string>(nullable: true),
|
||||||
|
Lba400000ReadableCluster = table.Column<int>(nullable: false),
|
||||||
|
Lba450000Readable = table.Column<bool>(nullable: false),
|
||||||
|
Lba450000Data = table.Column<byte[]>(nullable: true),
|
||||||
|
Lba450000Sense = table.Column<byte[]>(nullable: true),
|
||||||
|
Lba450000DecodedSense = table.Column<string>(nullable: true),
|
||||||
|
Lba450000ReadableCluster = table.Column<int>(nullable: false),
|
||||||
|
Lba44990PqReadable = table.Column<bool>(nullable: false),
|
||||||
|
Lba44990PqData = table.Column<byte[]>(nullable: true),
|
||||||
|
Lba44990PqSense = table.Column<byte[]>(nullable: true),
|
||||||
|
Lba44990PqDecodedSense = table.Column<string>(nullable: true),
|
||||||
|
Lba44990PqReadableCluster = table.Column<int>(nullable: false),
|
||||||
|
Lba45000PqReadable = table.Column<bool>(nullable: false),
|
||||||
|
Lba45000PqData = table.Column<byte[]>(nullable: true),
|
||||||
|
Lba45000PqSense = table.Column<byte[]>(nullable: true),
|
||||||
|
Lba45000PqDecodedSense = table.Column<string>(nullable: true),
|
||||||
|
Lba45000PqReadableCluster = table.Column<int>(nullable: false),
|
||||||
|
Lba50000PqReadable = table.Column<bool>(nullable: false),
|
||||||
|
Lba50000PqData = table.Column<byte[]>(nullable: true),
|
||||||
|
Lba50000PqSense = table.Column<byte[]>(nullable: true),
|
||||||
|
Lba50000PqDecodedSense = table.Column<string>(nullable: true),
|
||||||
|
Lba50000PqReadableCluster = table.Column<int>(nullable: false),
|
||||||
|
Lba100000PqReadable = table.Column<bool>(nullable: false),
|
||||||
|
Lba100000PqData = table.Column<byte[]>(nullable: true),
|
||||||
|
Lba100000PqSense = table.Column<byte[]>(nullable: true),
|
||||||
|
Lba100000PqDecodedSense = table.Column<string>(nullable: true),
|
||||||
|
Lba100000PqReadableCluster = table.Column<int>(nullable: false),
|
||||||
|
Lba400000PqReadable = table.Column<bool>(nullable: false),
|
||||||
|
Lba400000PqData = table.Column<byte[]>(nullable: true),
|
||||||
|
Lba400000PqSense = table.Column<byte[]>(nullable: true),
|
||||||
|
Lba400000PqDecodedSense = table.Column<string>(nullable: true),
|
||||||
|
Lba400000PqReadableCluster = table.Column<int>(nullable: false),
|
||||||
|
Lba450000PqReadable = table.Column<bool>(nullable: false),
|
||||||
|
Lba450000PqData = table.Column<byte[]>(nullable: true),
|
||||||
|
Lba450000PqSense = table.Column<byte[]>(nullable: true),
|
||||||
|
Lba450000PqDecodedSense = table.Column<string>(nullable: true),
|
||||||
|
Lba450000PqReadableCluster = table.Column<int>(nullable: false),
|
||||||
|
Lba44990RwReadable = table.Column<bool>(nullable: false),
|
||||||
|
Lba44990RwData = table.Column<byte[]>(nullable: true),
|
||||||
|
Lba44990RwSense = table.Column<byte[]>(nullable: true),
|
||||||
|
Lba44990RwDecodedSense = table.Column<string>(nullable: true),
|
||||||
|
Lba44990RwReadableCluster = table.Column<int>(nullable: false),
|
||||||
|
Lba45000RwReadable = table.Column<bool>(nullable: false),
|
||||||
|
Lba45000RwData = table.Column<byte[]>(nullable: true),
|
||||||
|
Lba45000RwSense = table.Column<byte[]>(nullable: true),
|
||||||
|
Lba45000RwDecodedSense = table.Column<string>(nullable: true),
|
||||||
|
Lba45000RwReadableCluster = table.Column<int>(nullable: false),
|
||||||
|
Lba50000RwReadable = table.Column<bool>(nullable: false),
|
||||||
|
Lba50000RwData = table.Column<byte[]>(nullable: true),
|
||||||
|
Lba50000RwSense = table.Column<byte[]>(nullable: true),
|
||||||
|
Lba50000RwDecodedSense = table.Column<string>(nullable: true),
|
||||||
|
Lba50000RwReadableCluster = table.Column<int>(nullable: false),
|
||||||
|
Lba100000RwReadable = table.Column<bool>(nullable: false),
|
||||||
|
Lba100000RwData = table.Column<byte[]>(nullable: true),
|
||||||
|
Lba100000RwSense = table.Column<byte[]>(nullable: true),
|
||||||
|
Lba100000RwDecodedSense = table.Column<string>(nullable: true),
|
||||||
|
Lba100000RwReadableCluster = table.Column<int>(nullable: false),
|
||||||
|
Lba400000RwReadable = table.Column<bool>(nullable: false),
|
||||||
|
Lba400000RwData = table.Column<byte[]>(nullable: true),
|
||||||
|
Lba400000RwSense = table.Column<byte[]>(nullable: true),
|
||||||
|
Lba400000RwDecodedSense = table.Column<string>(nullable: true),
|
||||||
|
Lba400000RwReadableCluster = table.Column<int>(nullable: false),
|
||||||
|
Lba450000RwReadable = table.Column<bool>(nullable: false),
|
||||||
|
Lba450000RwData = table.Column<byte[]>(nullable: true),
|
||||||
|
Lba450000RwSense = table.Column<byte[]>(nullable: true),
|
||||||
|
Lba450000RwDecodedSense = table.Column<string>(nullable: true),
|
||||||
|
Lba450000RwReadableCluster = table.Column<int>(nullable: false),
|
||||||
|
MinimumReadableSectorInHdArea = table.Column<uint>(nullable: false),
|
||||||
|
MaximumReadableSectorInHdArea = table.Column<uint>(nullable: false),
|
||||||
|
MaximumReadablePqInHdArea = table.Column<byte[]>(nullable: true),
|
||||||
|
MaximumReadableRwInHdArea = table.Column<byte[]>(nullable: true)
|
||||||
|
}, constraints: table =>
|
||||||
|
{
|
||||||
|
table.PrimaryKey("PK_GdRomSwapDiscCapabilities", x => x.Id);
|
||||||
|
});
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex("IX_Reports_GdRomSwapDiscCapabilitiesId", "Reports",
|
||||||
|
"GdRomSwapDiscCapabilitiesId");
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex("IX_Devices_GdRomSwapDiscCapabilitiesId", "Devices",
|
||||||
|
"GdRomSwapDiscCapabilitiesId");
|
||||||
|
|
||||||
|
migrationBuilder.AddForeignKey("FK_Devices_GdRomSwapDiscCapabilities_GdRomSwapDiscCapabilitiesId",
|
||||||
|
"Devices", "GdRomSwapDiscCapabilitiesId", "GdRomSwapDiscCapabilities",
|
||||||
|
principalColumn: "Id", onDelete: ReferentialAction.Restrict);
|
||||||
|
|
||||||
|
migrationBuilder.AddForeignKey("FK_Reports_GdRomSwapDiscCapabilities_GdRomSwapDiscCapabilitiesId",
|
||||||
|
"Reports", "GdRomSwapDiscCapabilitiesId", "GdRomSwapDiscCapabilities",
|
||||||
|
principalColumn: "Id", onDelete: ReferentialAction.Restrict);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropForeignKey("FK_Devices_GdRomSwapDiscCapabilities_GdRomSwapDiscCapabilitiesId",
|
||||||
|
"Devices");
|
||||||
|
|
||||||
|
migrationBuilder.DropForeignKey("FK_Reports_GdRomSwapDiscCapabilities_GdRomSwapDiscCapabilitiesId",
|
||||||
|
"Reports");
|
||||||
|
|
||||||
|
migrationBuilder.DropTable("GdRomSwapDiscCapabilities");
|
||||||
|
|
||||||
|
migrationBuilder.DropIndex("IX_Reports_GdRomSwapDiscCapabilitiesId", "Reports");
|
||||||
|
|
||||||
|
migrationBuilder.DropIndex("IX_Devices_GdRomSwapDiscCapabilitiesId", "Devices");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn("GdRomSwapDiscCapabilitiesId", "Reports");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn("GdRomSwapDiscCapabilitiesId", "Devices");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -97,6 +97,229 @@ namespace Aaru.Database.Migrations
|
|||||||
b.ToTable("FireWire");
|
b.ToTable("FireWire");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Aaru.CommonTypes.Metadata.GdRomSwapDiscCapabilities", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id").ValueGeneratedOnAdd().HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<byte[]>("Lba0Data").HasColumnType("BLOB");
|
||||||
|
|
||||||
|
b.Property<string>("Lba0DecodedSense").HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<bool>("Lba0Readable").HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<byte[]>("Lba0ScrambledData").HasColumnType("BLOB");
|
||||||
|
|
||||||
|
b.Property<string>("Lba0ScrambledDecodedSense").HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<bool>("Lba0ScrambledReadable").HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<byte[]>("Lba0ScrambledSense").HasColumnType("BLOB");
|
||||||
|
|
||||||
|
b.Property<byte[]>("Lba0Sense").HasColumnType("BLOB");
|
||||||
|
|
||||||
|
b.Property<byte[]>("Lba100000Data").HasColumnType("BLOB");
|
||||||
|
|
||||||
|
b.Property<string>("Lba100000DecodedSense").HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<byte[]>("Lba100000PqData").HasColumnType("BLOB");
|
||||||
|
|
||||||
|
b.Property<string>("Lba100000PqDecodedSense").HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<bool>("Lba100000PqReadable").HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<int>("Lba100000PqReadableCluster").HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<byte[]>("Lba100000PqSense").HasColumnType("BLOB");
|
||||||
|
|
||||||
|
b.Property<bool>("Lba100000Readable").HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<int>("Lba100000ReadableCluster").HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<byte[]>("Lba100000RwData").HasColumnType("BLOB");
|
||||||
|
|
||||||
|
b.Property<string>("Lba100000RwDecodedSense").HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<bool>("Lba100000RwReadable").HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<int>("Lba100000RwReadableCluster").HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<byte[]>("Lba100000RwSense").HasColumnType("BLOB");
|
||||||
|
|
||||||
|
b.Property<byte[]>("Lba100000Sense").HasColumnType("BLOB");
|
||||||
|
|
||||||
|
b.Property<byte[]>("Lba400000Data").HasColumnType("BLOB");
|
||||||
|
|
||||||
|
b.Property<string>("Lba400000DecodedSense").HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<byte[]>("Lba400000PqData").HasColumnType("BLOB");
|
||||||
|
|
||||||
|
b.Property<string>("Lba400000PqDecodedSense").HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<bool>("Lba400000PqReadable").HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<int>("Lba400000PqReadableCluster").HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<byte[]>("Lba400000PqSense").HasColumnType("BLOB");
|
||||||
|
|
||||||
|
b.Property<bool>("Lba400000Readable").HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<int>("Lba400000ReadableCluster").HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<byte[]>("Lba400000RwData").HasColumnType("BLOB");
|
||||||
|
|
||||||
|
b.Property<string>("Lba400000RwDecodedSense").HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<bool>("Lba400000RwReadable").HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<int>("Lba400000RwReadableCluster").HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<byte[]>("Lba400000RwSense").HasColumnType("BLOB");
|
||||||
|
|
||||||
|
b.Property<byte[]>("Lba400000Sense").HasColumnType("BLOB");
|
||||||
|
|
||||||
|
b.Property<byte[]>("Lba44990Data").HasColumnType("BLOB");
|
||||||
|
|
||||||
|
b.Property<string>("Lba44990DecodedSense").HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<byte[]>("Lba44990PqData").HasColumnType("BLOB");
|
||||||
|
|
||||||
|
b.Property<string>("Lba44990PqDecodedSense").HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<bool>("Lba44990PqReadable").HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<int>("Lba44990PqReadableCluster").HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<byte[]>("Lba44990PqSense").HasColumnType("BLOB");
|
||||||
|
|
||||||
|
b.Property<bool>("Lba44990Readable").HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<int>("Lba44990ReadableCluster").HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<byte[]>("Lba44990RwData").HasColumnType("BLOB");
|
||||||
|
|
||||||
|
b.Property<string>("Lba44990RwDecodedSense").HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<bool>("Lba44990RwReadable").HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<int>("Lba44990RwReadableCluster").HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<byte[]>("Lba44990RwSense").HasColumnType("BLOB");
|
||||||
|
|
||||||
|
b.Property<byte[]>("Lba44990Sense").HasColumnType("BLOB");
|
||||||
|
|
||||||
|
b.Property<byte[]>("Lba450000Data").HasColumnType("BLOB");
|
||||||
|
|
||||||
|
b.Property<string>("Lba450000DecodedSense").HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<byte[]>("Lba450000PqData").HasColumnType("BLOB");
|
||||||
|
|
||||||
|
b.Property<string>("Lba450000PqDecodedSense").HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<bool>("Lba450000PqReadable").HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<int>("Lba450000PqReadableCluster").HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<byte[]>("Lba450000PqSense").HasColumnType("BLOB");
|
||||||
|
|
||||||
|
b.Property<bool>("Lba450000Readable").HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<int>("Lba450000ReadableCluster").HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<byte[]>("Lba450000RwData").HasColumnType("BLOB");
|
||||||
|
|
||||||
|
b.Property<string>("Lba450000RwDecodedSense").HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<bool>("Lba450000RwReadable").HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<int>("Lba450000RwReadableCluster").HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<byte[]>("Lba450000RwSense").HasColumnType("BLOB");
|
||||||
|
|
||||||
|
b.Property<byte[]>("Lba450000Sense").HasColumnType("BLOB");
|
||||||
|
|
||||||
|
b.Property<byte[]>("Lba45000Data").HasColumnType("BLOB");
|
||||||
|
|
||||||
|
b.Property<string>("Lba45000DecodedSense").HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<byte[]>("Lba45000PqData").HasColumnType("BLOB");
|
||||||
|
|
||||||
|
b.Property<string>("Lba45000PqDecodedSense").HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<bool>("Lba45000PqReadable").HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<int>("Lba45000PqReadableCluster").HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<byte[]>("Lba45000PqSense").HasColumnType("BLOB");
|
||||||
|
|
||||||
|
b.Property<bool>("Lba45000Readable").HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<int>("Lba45000ReadableCluster").HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<byte[]>("Lba45000RwData").HasColumnType("BLOB");
|
||||||
|
|
||||||
|
b.Property<string>("Lba45000RwDecodedSense").HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<bool>("Lba45000RwReadable").HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<int>("Lba45000RwReadableCluster").HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<byte[]>("Lba45000RwSense").HasColumnType("BLOB");
|
||||||
|
|
||||||
|
b.Property<byte[]>("Lba45000Sense").HasColumnType("BLOB");
|
||||||
|
|
||||||
|
b.Property<byte[]>("Lba50000Data").HasColumnType("BLOB");
|
||||||
|
|
||||||
|
b.Property<string>("Lba50000DecodedSense").HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<byte[]>("Lba50000PqData").HasColumnType("BLOB");
|
||||||
|
|
||||||
|
b.Property<string>("Lba50000PqDecodedSense").HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<bool>("Lba50000PqReadable").HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<int>("Lba50000PqReadableCluster").HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<byte[]>("Lba50000PqSense").HasColumnType("BLOB");
|
||||||
|
|
||||||
|
b.Property<bool>("Lba50000Readable").HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<int>("Lba50000ReadableCluster").HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<byte[]>("Lba50000RwData").HasColumnType("BLOB");
|
||||||
|
|
||||||
|
b.Property<string>("Lba50000RwDecodedSense").HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<bool>("Lba50000RwReadable").HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<int>("Lba50000RwReadableCluster").HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<byte[]>("Lba50000RwSense").HasColumnType("BLOB");
|
||||||
|
|
||||||
|
b.Property<byte[]>("Lba50000Sense").HasColumnType("BLOB");
|
||||||
|
|
||||||
|
b.Property<byte[]>("MaximumReadablePqInHdArea").HasColumnType("BLOB");
|
||||||
|
|
||||||
|
b.Property<byte[]>("MaximumReadableRwInHdArea").HasColumnType("BLOB");
|
||||||
|
|
||||||
|
b.Property<uint>("MaximumReadableSectorInHdArea").HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<uint>("MinimumReadableSectorInHdArea").HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<bool>("RecognizedSwapDisc").HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<byte>("SwapDiscLeadOutPFRAM").HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<byte>("SwapDiscLeadOutPMIN").HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<byte>("SwapDiscLeadOutPSEC").HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<int>("SwapDiscLeadOutStart").HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.ToTable("GdRomSwapDiscCapabilities");
|
||||||
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Aaru.CommonTypes.Metadata.Mmc", b =>
|
modelBuilder.Entity("Aaru.CommonTypes.Metadata.Mmc", b =>
|
||||||
{
|
{
|
||||||
b.Property<int>("Id").ValueGeneratedOnAdd().HasColumnType("INTEGER");
|
b.Property<int>("Id").ValueGeneratedOnAdd().HasColumnType("INTEGER");
|
||||||
@@ -1022,6 +1245,8 @@ namespace Aaru.Database.Migrations
|
|||||||
|
|
||||||
b.Property<int?>("FireWireId").HasColumnType("INTEGER");
|
b.Property<int?>("FireWireId").HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<int?>("GdRomSwapDiscCapabilitiesId").HasColumnType("INTEGER");
|
||||||
|
|
||||||
b.Property<DateTime>("LastSynchronized").HasColumnType("TEXT");
|
b.Property<DateTime>("LastSynchronized").HasColumnType("TEXT");
|
||||||
|
|
||||||
b.Property<string>("Manufacturer").HasColumnType("TEXT");
|
b.Property<string>("Manufacturer").HasColumnType("TEXT");
|
||||||
@@ -1052,6 +1277,8 @@ namespace Aaru.Database.Migrations
|
|||||||
|
|
||||||
b.HasIndex("FireWireId");
|
b.HasIndex("FireWireId");
|
||||||
|
|
||||||
|
b.HasIndex("GdRomSwapDiscCapabilitiesId");
|
||||||
|
|
||||||
b.HasIndex("MultiMediaCardId");
|
b.HasIndex("MultiMediaCardId");
|
||||||
|
|
||||||
b.HasIndex("PCMCIAId");
|
b.HasIndex("PCMCIAId");
|
||||||
@@ -1241,6 +1468,8 @@ namespace Aaru.Database.Migrations
|
|||||||
|
|
||||||
b.Property<int?>("FireWireId").HasColumnType("INTEGER");
|
b.Property<int?>("FireWireId").HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<int?>("GdRomSwapDiscCapabilitiesId").HasColumnType("INTEGER");
|
||||||
|
|
||||||
b.Property<string>("Manufacturer").HasColumnType("TEXT");
|
b.Property<string>("Manufacturer").HasColumnType("TEXT");
|
||||||
|
|
||||||
b.Property<string>("Model").HasColumnType("TEXT");
|
b.Property<string>("Model").HasColumnType("TEXT");
|
||||||
@@ -1269,6 +1498,8 @@ namespace Aaru.Database.Migrations
|
|||||||
|
|
||||||
b.HasIndex("FireWireId");
|
b.HasIndex("FireWireId");
|
||||||
|
|
||||||
|
b.HasIndex("GdRomSwapDiscCapabilitiesId");
|
||||||
|
|
||||||
b.HasIndex("MultiMediaCardId");
|
b.HasIndex("MultiMediaCardId");
|
||||||
|
|
||||||
b.HasIndex("PCMCIAId");
|
b.HasIndex("PCMCIAId");
|
||||||
@@ -1440,6 +1671,9 @@ namespace Aaru.Database.Migrations
|
|||||||
b.HasOne("Aaru.CommonTypes.Metadata.FireWire", "FireWire").WithMany().HasForeignKey("FireWireId").
|
b.HasOne("Aaru.CommonTypes.Metadata.FireWire", "FireWire").WithMany().HasForeignKey("FireWireId").
|
||||||
OnDelete(DeleteBehavior.SetNull);
|
OnDelete(DeleteBehavior.SetNull);
|
||||||
|
|
||||||
|
b.HasOne("Aaru.CommonTypes.Metadata.GdRomSwapDiscCapabilities", "GdRomSwapDiscCapabilities").WithMany().
|
||||||
|
HasForeignKey("GdRomSwapDiscCapabilitiesId");
|
||||||
|
|
||||||
b.HasOne("Aaru.CommonTypes.Metadata.MmcSd", "MultiMediaCard").WithMany().
|
b.HasOne("Aaru.CommonTypes.Metadata.MmcSd", "MultiMediaCard").WithMany().
|
||||||
HasForeignKey("MultiMediaCardId").OnDelete(DeleteBehavior.SetNull);
|
HasForeignKey("MultiMediaCardId").OnDelete(DeleteBehavior.SetNull);
|
||||||
|
|
||||||
@@ -1467,6 +1701,9 @@ namespace Aaru.Database.Migrations
|
|||||||
b.HasOne("Aaru.CommonTypes.Metadata.FireWire", "FireWire").WithMany().HasForeignKey("FireWireId").
|
b.HasOne("Aaru.CommonTypes.Metadata.FireWire", "FireWire").WithMany().HasForeignKey("FireWireId").
|
||||||
OnDelete(DeleteBehavior.SetNull);
|
OnDelete(DeleteBehavior.SetNull);
|
||||||
|
|
||||||
|
b.HasOne("Aaru.CommonTypes.Metadata.GdRomSwapDiscCapabilities", "GdRomSwapDiscCapabilities").WithMany().
|
||||||
|
HasForeignKey("GdRomSwapDiscCapabilitiesId");
|
||||||
|
|
||||||
b.HasOne("Aaru.CommonTypes.Metadata.MmcSd", "MultiMediaCard").WithMany().
|
b.HasOne("Aaru.CommonTypes.Metadata.MmcSd", "MultiMediaCard").WithMany().
|
||||||
HasForeignKey("MultiMediaCardId").OnDelete(DeleteBehavior.SetNull);
|
HasForeignKey("MultiMediaCardId").OnDelete(DeleteBehavior.SetNull);
|
||||||
|
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ namespace Aaru.Database.Models
|
|||||||
Model = report.Model;
|
Model = report.Model;
|
||||||
Revision = report.Revision;
|
Revision = report.Revision;
|
||||||
Type = report.Type;
|
Type = report.Type;
|
||||||
|
GdRomSwapDiscCapabilities = report.GdRomSwapDiscCapabilities;
|
||||||
}
|
}
|
||||||
|
|
||||||
public DateTime LastSynchronized { get; set; }
|
public DateTime LastSynchronized { get; set; }
|
||||||
|
|||||||
Reference in New Issue
Block a user