Add ASP.NET display names for physical and logical types in media entities.

This commit is contained in:
2019-11-11 00:15:15 +00:00
parent c3617599ac
commit 22bd8b0dc9

View File

@@ -31,6 +31,7 @@
// ****************************************************************************/
using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using DiscImageChef.CommonTypes;
@@ -73,8 +74,10 @@ namespace DiscImageChef.Server.Models
}
[NotMapped]
[DisplayName("Physical type")]
public string PhysicalType => MediaType.type;
[NotMapped]
[DisplayName("Logical type")]
public string LogicalType => MediaType.subType;
}
}