Workaround unsigned fields in database unsupported by EntityFramework 6.

This commit is contained in:
2018-12-23 18:49:07 +00:00
parent 30d4e4bb31
commit dcbdf9d59a
2 changed files with 384 additions and 169 deletions

View File

@@ -996,6 +996,38 @@ namespace DiscImageChef.CommonTypes.Metadata
public string Organization { get; set; }
public string Name { get; set; }
public string Description { get; set; }
[JsonIgnore]
[XmlIgnore]
public int BitsPerMmSql
{
get => (int)BitsPerMm;
set => BitsPerMm = (uint)value;
}
[JsonIgnore]
[XmlIgnore]
public short WidthSql
{
get => (short)Width;
set => Width = (ushort)value;
}
[JsonIgnore]
[XmlIgnore]
public short TracksSql
{
get => (short)Tracks;
set => Tracks = (ushort)value;
}
[JsonIgnore]
[XmlIgnore]
public int CapacitySql
{
get => (int)Capacity;
set => Capacity = (uint)value;
}
}
public class SupportedMedia