Workaround unsigned fields in database unsupported by EntityFramework 6.

This commit is contained in:
2018-12-23 18:49:07 +00:00
parent be59f7f910
commit 926bcb7c74
23 changed files with 2324 additions and 197 deletions

View File

@@ -61,12 +61,7 @@ namespace DiscImageChef.Core.Devices.Report
Feature_0001? ftr0001 = Features.Decode_0001(desc.Data);
if(ftr0001.HasValue)
{
report.PhysicalInterfaceStandard = ftr0001.Value.PhysicalInterfaceStandard;
if((uint)ftr0001.Value.PhysicalInterfaceStandard > 0x8)
{
report.PhysicalInterfaceStandardNumber = (uint)ftr0001.Value.PhysicalInterfaceStandard;
report.PhysicalInterfaceStandard = PhysicalInterfaces.Unspecified;
}
report.PhysicalInterfaceStandardNumber = (uint)ftr0001.Value.PhysicalInterfaceStandard;
report.SupportsDeviceBusyEvent = ftr0001.Value.DBE;
}