Add machines (games) to database.

This commit is contained in:
2020-08-22 14:20:59 +01:00
parent f86ec49c11
commit 9323b48e43
7 changed files with 358 additions and 2 deletions

View File

@@ -23,6 +23,7 @@
// Copyright © 2020 Natalia Portillo
*******************************************************************************/
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace RomRepoMgr.Database.Models
@@ -40,5 +41,7 @@ namespace RomRepoMgr.Database.Models
public string Filename { get; set; }
[Required, StringLength(96, MinimumLength = 96)]
public string Sha384 { get; set; }
public virtual ICollection<Machine> Machines { get; set; }
}
}