mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
Add ASP.NET display names for physical and logical types in media entities.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user