Add constraint to instruction set.

This commit is contained in:
2019-05-19 22:24:00 +01:00
parent 2785155680
commit 3264c73da1
3 changed files with 10 additions and 1 deletions

View File

@@ -30,6 +30,7 @@
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Microsoft.AspNetCore.Mvc;
namespace Cicm.Database.Models
{
@@ -42,6 +43,7 @@ namespace Cicm.Database.Models
[Required]
[StringLength(45)]
[Remote("VerifyUnique", "InstructionSets", "Admin")]
public string Name { get; set; }
public virtual ICollection<Processor> Processors { get; set; }