mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Sort machines in admin page.
This commit is contained in:
@@ -30,6 +30,8 @@
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Cicm.Database.Models
|
||||
{
|
||||
@@ -59,5 +61,10 @@ namespace Cicm.Database.Models
|
||||
public virtual ICollection<ProcessorsByMachine> Processors { get; set; }
|
||||
public virtual ICollection<SoundByMachine> Sound { get; set; }
|
||||
public virtual ICollection<StorageByMachine> Storage { get; set; }
|
||||
|
||||
[NotMapped]
|
||||
[DisplayName("Introduced")]
|
||||
public string IntroducedView =>
|
||||
Introduced == DateTime.MinValue ? "Prototype" : Introduced?.ToShortDateString() ?? "Unknown";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user