Refactor and reorganize code.

This commit is contained in:
2020-02-10 22:44:18 +00:00
parent ed5aacd34e
commit da352de481
345 changed files with 15117 additions and 20198 deletions

View File

@@ -36,14 +36,9 @@ namespace Marechai.Database.Models
{
public class InstructionSet : BaseModel<int>
{
public InstructionSet()
{
Processors = new HashSet<Processor>();
}
public InstructionSet() => Processors = new HashSet<Processor>();
[Required]
[StringLength(45)]
[Remote("VerifyUnique", "InstructionSets", "Admin")]
[Required, StringLength(45), Remote("VerifyUnique", "InstructionSets", "Admin")]
public string Name { get; set; }
public virtual ICollection<Processor> Processors { get; set; }