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

@@ -32,19 +32,16 @@
using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using DiscImageChef.CommonTypes;
namespace DiscImageChef.Server.Models
{
public class Media
public class Media : BaseModel<int>
{
[NotMapped]
(string type, string subType) _mediaType;
[Key]
public int Id { get; set; }
public string Type { get; set; }
public bool Real { get; set; }
public long Count { get; set; }