Add database entry for optimal count of sectors for multiple read in devices.

This commit is contained in:
2019-01-03 16:55:15 +00:00
parent 38544897e5
commit cb1ed0450c
16 changed files with 1791 additions and 7 deletions

View File

@@ -344,13 +344,20 @@ namespace DiscImageChef.Core
if(existing != null)
{
modifiedDevices++;
existing = new Device(device) {Id = device.Id};
existing = new Device(device)
{
Id = device.Id, OptimalMultipleSectorsRead = device.OptimalMultipleSectorsRead
};
mctx.Devices.Update(existing);
}
else
{
addedDevices++;
mctx.Devices.Add(new Device(device) {Id = device.Id});
mctx.Devices.Add(new Device(device)
{
Id = device.Id,
OptimalMultipleSectorsRead = device.OptimalMultipleSectorsRead
});
}
}