Set date datatypes in model.

This commit is contained in:
2019-05-19 21:02:57 +01:00
parent 4e3558e045
commit 0cc03e93f1
5 changed files with 8 additions and 2 deletions

View File

@@ -53,6 +53,7 @@ namespace Cicm.Database.Models
[StringLength(45)]
public string ModelCode { get; set; }
[DisplayFormat(DataFormatString = "{0:d}")]
[DataType(DataType.Date)]
public DateTime? Introduced { get; set; }
[DisplayName("Instruction set")]
public int? InstructionSetId { get; set; }