Use base model.

This commit is contained in:
2019-12-03 21:08:14 +00:00
parent 9b916b64df
commit e380126937
15 changed files with 24 additions and 67 deletions

View File

@@ -31,12 +31,11 @@
// ****************************************************************************/
using System;
using System.ComponentModel.DataAnnotations;
using Newtonsoft.Json;
namespace DiscImageChef.Server.Models
{
public class UsbProduct
public class UsbProduct : BaseModel<int>
{
public UsbProduct() { }
@@ -48,9 +47,6 @@ namespace DiscImageChef.Server.Models
Vendor = vendor;
}
[Key]
public int Id { get; set; }
public ushort ProductId { get; set; }
public string Product { get; set; }
public DateTime AddedWhen { get; set; }