mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
Remove signed fields.
This commit is contained in:
Submodule DiscImageChef.CommonTypes updated: 51d4c0e87a...8505b00e04
@@ -65,7 +65,7 @@ namespace DiscImageChef.Server.Controllers
|
||||
|
||||
sync.UsbVendors = new List<UsbVendorDto>();
|
||||
foreach (var vendor in _ctx.UsbVendors.Where(v => v.ModifiedWhen > lastSync))
|
||||
sync.UsbVendors.Add(new UsbVendorDto {VendorId = (ushort) vendor.VendorId, Vendor = vendor.Vendor});
|
||||
sync.UsbVendors.Add(new UsbVendorDto {VendorId = vendor.VendorId, Vendor = vendor.Vendor});
|
||||
|
||||
sync.UsbProducts = new List<UsbProductDto>();
|
||||
foreach (var product in _ctx.UsbProducts.Include(p => p.Vendor).Where(p => p.ModifiedWhen > lastSync))
|
||||
@@ -73,8 +73,8 @@ namespace DiscImageChef.Server.Controllers
|
||||
{
|
||||
Id = product.Id,
|
||||
Product = product.Product,
|
||||
ProductId = (ushort) product.ProductId,
|
||||
VendorId = (ushort) product.Vendor.VendorId
|
||||
ProductId = product.ProductId,
|
||||
VendorId = product.Vendor.VendorId
|
||||
});
|
||||
|
||||
sync.Offsets = new List<CdOffsetDto>();
|
||||
|
||||
1999
DiscImageChef.Server/Migrations/20191102231633_MakeFieldsUnsigned.Designer.cs
generated
Normal file
1999
DiscImageChef.Server/Migrations/20191102231633_MakeFieldsUnsigned.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,384 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace DiscImageChef.Server.Migrations
|
||||
{
|
||||
public partial class MakeFieldsUnsigned : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ProductIDSql",
|
||||
table: "Usb");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "VendorIDSql",
|
||||
table: "Usb");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "BlockSizeSql",
|
||||
table: "TestedMedia");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "BlocksSql",
|
||||
table: "TestedMedia");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "LBA48SectorsSql",
|
||||
table: "TestedMedia");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "LBASectorsSql",
|
||||
table: "TestedMedia");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "LogicalAlignmentSql",
|
||||
table: "TestedMedia");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "LongBlockSizeSql",
|
||||
table: "TestedMedia");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "NominalRotationRateSql",
|
||||
table: "TestedMedia");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "PhysicalBlockSizeSql",
|
||||
table: "TestedMedia");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "UnformattedBPSSql",
|
||||
table: "TestedMedia");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "UnformattedBPTSql",
|
||||
table: "TestedMedia");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "BitsPerMmSql",
|
||||
table: "SupportedDensity");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "CapacitySql",
|
||||
table: "SupportedDensity");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "TracksSql",
|
||||
table: "SupportedDensity");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "WidthSql",
|
||||
table: "SupportedDensity");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "LengthSql",
|
||||
table: "SscSupportedMedia");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "WidthSql",
|
||||
table: "SscSupportedMedia");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "MaxBlockLengthSql",
|
||||
table: "Ssc");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "MinBlockLengthSql",
|
||||
table: "Ssc");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "CardCodeSql",
|
||||
table: "Pcmcia");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ManufacturerCodeSql",
|
||||
table: "Pcmcia");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "BlocksPerReadableUnitSql",
|
||||
table: "MmcFeatures");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "LogicalBlockSizeSql",
|
||||
table: "MmcFeatures");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "PhysicalInterfaceStandardNumberSql",
|
||||
table: "MmcFeatures");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "VolumeLevelsSql",
|
||||
table: "MmcFeatures");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ProductIDSql",
|
||||
table: "FireWire");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "VendorIDSql",
|
||||
table: "FireWire");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "CylindersSql",
|
||||
table: "Chs");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "HeadsSql",
|
||||
table: "Chs");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "SectorsSql",
|
||||
table: "Chs");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "BlockLengthSql",
|
||||
table: "BlockDescriptor");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "BlocksSql",
|
||||
table: "BlockDescriptor");
|
||||
|
||||
migrationBuilder.AlterColumn<ushort>(
|
||||
name: "VendorId",
|
||||
table: "UsbVendors",
|
||||
nullable: false,
|
||||
oldClrType: typeof(int),
|
||||
oldType: "int");
|
||||
|
||||
migrationBuilder.AlterColumn<ushort>(
|
||||
name: "ProductId",
|
||||
table: "UsbProducts",
|
||||
nullable: false,
|
||||
oldClrType: typeof(int),
|
||||
oldType: "int");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<int>(
|
||||
name: "VendorId",
|
||||
table: "UsbVendors",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
oldClrType: typeof(ushort));
|
||||
|
||||
migrationBuilder.AlterColumn<int>(
|
||||
name: "ProductId",
|
||||
table: "UsbProducts",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
oldClrType: typeof(ushort));
|
||||
|
||||
migrationBuilder.AddColumn<short>(
|
||||
name: "ProductIDSql",
|
||||
table: "Usb",
|
||||
type: "smallint",
|
||||
nullable: false,
|
||||
defaultValue: (short)0);
|
||||
|
||||
migrationBuilder.AddColumn<short>(
|
||||
name: "VendorIDSql",
|
||||
table: "Usb",
|
||||
type: "smallint",
|
||||
nullable: false,
|
||||
defaultValue: (short)0);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "BlockSizeSql",
|
||||
table: "TestedMedia",
|
||||
type: "int",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<long>(
|
||||
name: "BlocksSql",
|
||||
table: "TestedMedia",
|
||||
type: "bigint",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<long>(
|
||||
name: "LBA48SectorsSql",
|
||||
table: "TestedMedia",
|
||||
type: "bigint",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "LBASectorsSql",
|
||||
table: "TestedMedia",
|
||||
type: "int",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<short>(
|
||||
name: "LogicalAlignmentSql",
|
||||
table: "TestedMedia",
|
||||
type: "smallint",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "LongBlockSizeSql",
|
||||
table: "TestedMedia",
|
||||
type: "int",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<short>(
|
||||
name: "NominalRotationRateSql",
|
||||
table: "TestedMedia",
|
||||
type: "smallint",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "PhysicalBlockSizeSql",
|
||||
table: "TestedMedia",
|
||||
type: "int",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<short>(
|
||||
name: "UnformattedBPSSql",
|
||||
table: "TestedMedia",
|
||||
type: "smallint",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<short>(
|
||||
name: "UnformattedBPTSql",
|
||||
table: "TestedMedia",
|
||||
type: "smallint",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "BitsPerMmSql",
|
||||
table: "SupportedDensity",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
defaultValue: 0);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "CapacitySql",
|
||||
table: "SupportedDensity",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
defaultValue: 0);
|
||||
|
||||
migrationBuilder.AddColumn<short>(
|
||||
name: "TracksSql",
|
||||
table: "SupportedDensity",
|
||||
type: "smallint",
|
||||
nullable: false,
|
||||
defaultValue: (short)0);
|
||||
|
||||
migrationBuilder.AddColumn<short>(
|
||||
name: "WidthSql",
|
||||
table: "SupportedDensity",
|
||||
type: "smallint",
|
||||
nullable: false,
|
||||
defaultValue: (short)0);
|
||||
|
||||
migrationBuilder.AddColumn<short>(
|
||||
name: "LengthSql",
|
||||
table: "SscSupportedMedia",
|
||||
type: "smallint",
|
||||
nullable: false,
|
||||
defaultValue: (short)0);
|
||||
|
||||
migrationBuilder.AddColumn<short>(
|
||||
name: "WidthSql",
|
||||
table: "SscSupportedMedia",
|
||||
type: "smallint",
|
||||
nullable: false,
|
||||
defaultValue: (short)0);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "MaxBlockLengthSql",
|
||||
table: "Ssc",
|
||||
type: "int",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "MinBlockLengthSql",
|
||||
table: "Ssc",
|
||||
type: "int",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<short>(
|
||||
name: "CardCodeSql",
|
||||
table: "Pcmcia",
|
||||
type: "smallint",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<short>(
|
||||
name: "ManufacturerCodeSql",
|
||||
table: "Pcmcia",
|
||||
type: "smallint",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<short>(
|
||||
name: "BlocksPerReadableUnitSql",
|
||||
table: "MmcFeatures",
|
||||
type: "smallint",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "LogicalBlockSizeSql",
|
||||
table: "MmcFeatures",
|
||||
type: "int",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "PhysicalInterfaceStandardNumberSql",
|
||||
table: "MmcFeatures",
|
||||
type: "int",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<short>(
|
||||
name: "VolumeLevelsSql",
|
||||
table: "MmcFeatures",
|
||||
type: "smallint",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "ProductIDSql",
|
||||
table: "FireWire",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
defaultValue: 0);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "VendorIDSql",
|
||||
table: "FireWire",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
defaultValue: 0);
|
||||
|
||||
migrationBuilder.AddColumn<short>(
|
||||
name: "CylindersSql",
|
||||
table: "Chs",
|
||||
type: "smallint",
|
||||
nullable: false,
|
||||
defaultValue: (short)0);
|
||||
|
||||
migrationBuilder.AddColumn<short>(
|
||||
name: "HeadsSql",
|
||||
table: "Chs",
|
||||
type: "smallint",
|
||||
nullable: false,
|
||||
defaultValue: (short)0);
|
||||
|
||||
migrationBuilder.AddColumn<short>(
|
||||
name: "SectorsSql",
|
||||
table: "Chs",
|
||||
type: "smallint",
|
||||
nullable: false,
|
||||
defaultValue: (short)0);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "BlockLengthSql",
|
||||
table: "BlockDescriptor",
|
||||
type: "int",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<long>(
|
||||
name: "BlocksSql",
|
||||
table: "BlockDescriptor",
|
||||
type: "bigint",
|
||||
nullable: true);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,14 +1,14 @@
|
||||
// <auto-generated />
|
||||
|
||||
using System;
|
||||
using DiscImageChef.Server.Models;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
|
||||
namespace DiscImageChef.Server.Migrations
|
||||
{
|
||||
[DbContext(typeof(DicServerContext))]
|
||||
internal class DicServerContextModelSnapshot : ModelSnapshot
|
||||
partial class DicServerContextModelSnapshot : ModelSnapshot
|
||||
{
|
||||
protected override void BuildModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
@@ -45,15 +45,9 @@ namespace DiscImageChef.Server.Migrations
|
||||
b.Property<uint?>("BlockLength")
|
||||
.HasColumnType("int unsigned");
|
||||
|
||||
b.Property<int?>("BlockLengthSql")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<ulong?>("Blocks")
|
||||
.HasColumnType("bigint unsigned");
|
||||
|
||||
b.Property<long?>("BlocksSql")
|
||||
.HasColumnType("bigint");
|
||||
|
||||
b.Property<byte>("Density")
|
||||
.HasColumnType("tinyint unsigned");
|
||||
|
||||
@@ -76,21 +70,12 @@ namespace DiscImageChef.Server.Migrations
|
||||
b.Property<ushort>("Cylinders")
|
||||
.HasColumnType("smallint unsigned");
|
||||
|
||||
b.Property<short>("CylindersSql")
|
||||
.HasColumnType("smallint");
|
||||
|
||||
b.Property<ushort>("Heads")
|
||||
.HasColumnType("smallint unsigned");
|
||||
|
||||
b.Property<short>("HeadsSql")
|
||||
.HasColumnType("smallint");
|
||||
|
||||
b.Property<ushort>("Sectors")
|
||||
.HasColumnType("smallint unsigned");
|
||||
|
||||
b.Property<short>("SectorsSql")
|
||||
.HasColumnType("smallint");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("Chs");
|
||||
@@ -130,18 +115,12 @@ namespace DiscImageChef.Server.Migrations
|
||||
b.Property<uint>("ProductID")
|
||||
.HasColumnType("int unsigned");
|
||||
|
||||
b.Property<int>("ProductIDSql")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<bool>("RemovableMedia")
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.Property<uint>("VendorID")
|
||||
.HasColumnType("int unsigned");
|
||||
|
||||
b.Property<int>("VendorIDSql")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("FireWire");
|
||||
@@ -187,9 +166,6 @@ namespace DiscImageChef.Server.Migrations
|
||||
b.Property<ushort?>("BlocksPerReadableUnit")
|
||||
.HasColumnType("smallint unsigned");
|
||||
|
||||
b.Property<short?>("BlocksPerReadableUnitSql")
|
||||
.HasColumnType("smallint");
|
||||
|
||||
b.Property<bool>("BufferUnderrunFreeInDVD")
|
||||
.HasColumnType("bit");
|
||||
|
||||
@@ -484,18 +460,12 @@ namespace DiscImageChef.Server.Migrations
|
||||
b.Property<uint?>("LogicalBlockSize")
|
||||
.HasColumnType("int unsigned");
|
||||
|
||||
b.Property<int?>("LogicalBlockSizeSql")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<bool>("MultiRead")
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.Property<uint?>("PhysicalInterfaceStandardNumber")
|
||||
.HasColumnType("int unsigned");
|
||||
|
||||
b.Property<int?>("PhysicalInterfaceStandardNumberSql")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<bool>("PreventJumper")
|
||||
.HasColumnType("bit");
|
||||
|
||||
@@ -553,9 +523,6 @@ namespace DiscImageChef.Server.Migrations
|
||||
b.Property<ushort?>("VolumeLevels")
|
||||
.HasColumnType("smallint unsigned");
|
||||
|
||||
b.Property<short?>("VolumeLevelsSql")
|
||||
.HasColumnType("smallint");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("MmcFeatures");
|
||||
@@ -599,9 +566,6 @@ namespace DiscImageChef.Server.Migrations
|
||||
b.Property<ushort?>("CardCode")
|
||||
.HasColumnType("smallint unsigned");
|
||||
|
||||
b.Property<short?>("CardCodeSql")
|
||||
.HasColumnType("smallint");
|
||||
|
||||
b.Property<string>("Compliance")
|
||||
.HasColumnType("longtext");
|
||||
|
||||
@@ -611,9 +575,6 @@ namespace DiscImageChef.Server.Migrations
|
||||
b.Property<ushort?>("ManufacturerCode")
|
||||
.HasColumnType("smallint unsigned");
|
||||
|
||||
b.Property<short?>("ManufacturerCodeSql")
|
||||
.HasColumnType("smallint");
|
||||
|
||||
b.Property<string>("ProductName")
|
||||
.HasColumnType("longtext");
|
||||
|
||||
@@ -754,15 +715,9 @@ namespace DiscImageChef.Server.Migrations
|
||||
b.Property<uint?>("MaxBlockLength")
|
||||
.HasColumnType("int unsigned");
|
||||
|
||||
b.Property<int?>("MaxBlockLengthSql")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<uint?>("MinBlockLength")
|
||||
.HasColumnType("int unsigned");
|
||||
|
||||
b.Property<int?>("MinBlockLengthSql")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("Ssc");
|
||||
@@ -780,9 +735,6 @@ namespace DiscImageChef.Server.Migrations
|
||||
b.Property<ushort>("Length")
|
||||
.HasColumnType("smallint unsigned");
|
||||
|
||||
b.Property<short>("LengthSql")
|
||||
.HasColumnType("smallint");
|
||||
|
||||
b.Property<byte>("MediumType")
|
||||
.HasColumnType("tinyint unsigned");
|
||||
|
||||
@@ -801,9 +753,6 @@ namespace DiscImageChef.Server.Migrations
|
||||
b.Property<ushort>("Width")
|
||||
.HasColumnType("smallint unsigned");
|
||||
|
||||
b.Property<short>("WidthSql")
|
||||
.HasColumnType("smallint");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("SscId");
|
||||
@@ -822,15 +771,9 @@ namespace DiscImageChef.Server.Migrations
|
||||
b.Property<uint>("BitsPerMm")
|
||||
.HasColumnType("int unsigned");
|
||||
|
||||
b.Property<int>("BitsPerMmSql")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<uint>("Capacity")
|
||||
.HasColumnType("int unsigned");
|
||||
|
||||
b.Property<int>("CapacitySql")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<bool>("DefaultDensity")
|
||||
.HasColumnType("bit");
|
||||
|
||||
@@ -861,15 +804,9 @@ namespace DiscImageChef.Server.Migrations
|
||||
b.Property<ushort>("Tracks")
|
||||
.HasColumnType("smallint unsigned");
|
||||
|
||||
b.Property<short>("TracksSql")
|
||||
.HasColumnType("smallint");
|
||||
|
||||
b.Property<ushort>("Width")
|
||||
.HasColumnType("smallint unsigned");
|
||||
|
||||
b.Property<short>("WidthSql")
|
||||
.HasColumnType("smallint");
|
||||
|
||||
b.Property<bool>("Writable")
|
||||
.HasColumnType("bit");
|
||||
|
||||
@@ -900,15 +837,9 @@ namespace DiscImageChef.Server.Migrations
|
||||
b.Property<uint?>("BlockSize")
|
||||
.HasColumnType("int unsigned");
|
||||
|
||||
b.Property<int?>("BlockSizeSql")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<ulong?>("Blocks")
|
||||
.HasColumnType("bigint unsigned");
|
||||
|
||||
b.Property<long?>("BlocksSql")
|
||||
.HasColumnType("bigint");
|
||||
|
||||
b.Property<byte[]>("BluBcaData")
|
||||
.HasColumnType("longblob");
|
||||
|
||||
@@ -1089,15 +1020,9 @@ namespace DiscImageChef.Server.Migrations
|
||||
b.Property<ulong?>("LBA48Sectors")
|
||||
.HasColumnType("bigint unsigned");
|
||||
|
||||
b.Property<long?>("LBA48SectorsSql")
|
||||
.HasColumnType("bigint");
|
||||
|
||||
b.Property<uint?>("LBASectors")
|
||||
.HasColumnType("int unsigned");
|
||||
|
||||
b.Property<int?>("LBASectorsSql")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<byte[]>("LeadInData")
|
||||
.HasColumnType("longblob");
|
||||
|
||||
@@ -1107,15 +1032,9 @@ namespace DiscImageChef.Server.Migrations
|
||||
b.Property<ushort?>("LogicalAlignment")
|
||||
.HasColumnType("smallint unsigned");
|
||||
|
||||
b.Property<short?>("LogicalAlignmentSql")
|
||||
.HasColumnType("smallint");
|
||||
|
||||
b.Property<uint?>("LongBlockSize")
|
||||
.HasColumnType("int unsigned");
|
||||
|
||||
b.Property<int?>("LongBlockSizeSql")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Manufacturer")
|
||||
.HasColumnType("longtext");
|
||||
|
||||
@@ -1146,9 +1065,6 @@ namespace DiscImageChef.Server.Migrations
|
||||
b.Property<ushort?>("NominalRotationRate")
|
||||
.HasColumnType("smallint unsigned");
|
||||
|
||||
b.Property<short?>("NominalRotationRateSql")
|
||||
.HasColumnType("smallint");
|
||||
|
||||
b.Property<byte[]>("PQSubchannelData")
|
||||
.HasColumnType("longblob");
|
||||
|
||||
@@ -1161,9 +1077,6 @@ namespace DiscImageChef.Server.Migrations
|
||||
b.Property<uint?>("PhysicalBlockSize")
|
||||
.HasColumnType("int unsigned");
|
||||
|
||||
b.Property<int?>("PhysicalBlockSizeSql")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<byte[]>("PioneerReadCddaData")
|
||||
.HasColumnType("longblob");
|
||||
|
||||
@@ -1374,15 +1287,9 @@ namespace DiscImageChef.Server.Migrations
|
||||
b.Property<ushort?>("UnformattedBPS")
|
||||
.HasColumnType("smallint unsigned");
|
||||
|
||||
b.Property<short?>("UnformattedBPSSql")
|
||||
.HasColumnType("smallint");
|
||||
|
||||
b.Property<ushort?>("UnformattedBPT")
|
||||
.HasColumnType("smallint unsigned");
|
||||
|
||||
b.Property<short?>("UnformattedBPTSql")
|
||||
.HasColumnType("smallint");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("AtaId");
|
||||
@@ -1459,18 +1366,12 @@ namespace DiscImageChef.Server.Migrations
|
||||
b.Property<ushort>("ProductID")
|
||||
.HasColumnType("smallint unsigned");
|
||||
|
||||
b.Property<short>("ProductIDSql")
|
||||
.HasColumnType("smallint");
|
||||
|
||||
b.Property<bool>("RemovableMedia")
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.Property<ushort>("VendorID")
|
||||
.HasColumnType("smallint unsigned");
|
||||
|
||||
b.Property<short>("VendorIDSql")
|
||||
.HasColumnType("smallint");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("Usb");
|
||||
@@ -1829,8 +1730,8 @@ namespace DiscImageChef.Server.Migrations
|
||||
b.Property<string>("Product")
|
||||
.HasColumnType("longtext");
|
||||
|
||||
b.Property<int>("ProductId")
|
||||
.HasColumnType("int");
|
||||
b.Property<ushort>("ProductId")
|
||||
.HasColumnType("smallint unsigned");
|
||||
|
||||
b.Property<int>("VendorId")
|
||||
.HasColumnType("int");
|
||||
@@ -1861,8 +1762,8 @@ namespace DiscImageChef.Server.Migrations
|
||||
b.Property<string>("Vendor")
|
||||
.HasColumnType("longtext");
|
||||
|
||||
b.Property<int>("VendorId")
|
||||
.HasColumnType("int");
|
||||
b.Property<ushort>("VendorId")
|
||||
.HasColumnType("smallint unsigned");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ namespace DiscImageChef.Server.Models
|
||||
|
||||
[Key] public int Id { get; set; }
|
||||
|
||||
public int ProductId { get; set; }
|
||||
public ushort ProductId { get; set; }
|
||||
public string Product { get; set; }
|
||||
public DateTime AddedWhen { get; set; }
|
||||
public DateTime ModifiedWhen { get; set; }
|
||||
|
||||
@@ -52,7 +52,7 @@ namespace DiscImageChef.Server.Models
|
||||
|
||||
[Key] public int Id { get; set; }
|
||||
|
||||
public int VendorId { get; set; }
|
||||
public ushort VendorId { get; set; }
|
||||
public string Vendor { get; set; }
|
||||
public DateTime AddedWhen { get; set; }
|
||||
public DateTime ModifiedWhen { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user