Scaffold CRUD pages for licenses.

This commit is contained in:
2019-05-27 18:48:47 +01:00
parent 574176ee4c
commit 9bed89f390
9 changed files with 498 additions and 1 deletions

View File

@@ -19,10 +19,12 @@ namespace Cicm.Database.Models
public bool OsiApproved { get; set; }
[DisplayName("License text link")]
[StringLength(512)]
[Url]
public string Link { get; set; }
[DisplayName("License text")]
[Column(TypeName = "longtext")]
[StringLength(131072)]
[DataType(DataType.MultilineText)]
public string Text { get; set; }
public virtual ICollection<MachinePhoto> Photos { get; set; }
}