Use base model in database.

This commit is contained in:
2019-12-07 18:17:02 +00:00
parent 8877df16e3
commit e768f332a5
13 changed files with 22 additions and 48 deletions

View File

@@ -31,12 +31,11 @@
// ****************************************************************************/
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace DiscImageChef.Database.Models
{
public class UsbProduct
public class UsbProduct : BaseModel<int>
{
public UsbProduct() { }
@@ -48,8 +47,6 @@ namespace DiscImageChef.Database.Models
AddedWhen = ModifiedWhen = DateTime.UtcNow;
}
[Key]
public int Id { get; set; }
[Index]
public ushort ProductId { get; set; }
public string Product { get; set; }