Files
marechai/Cicm.Database/Models/Machine.cs

33 lines
1.4 KiB
C#
Raw Normal View History

2018-08-05 23:11:15 +01:00
using System;
using System.Collections.Generic;
namespace Cicm.Database.Models
{
2018-08-06 21:27:14 +01:00
public class Machine
2018-08-05 23:11:15 +01:00
{
2018-08-06 21:27:14 +01:00
public Machine()
2018-08-05 23:11:15 +01:00
{
Gpus = new HashSet<GpusByMachine>();
Memory = new HashSet<MemoryByMachine>();
Processors = new HashSet<ProcessorsByMachine>();
Sound = new HashSet<SoundByMachine>();
Storage = new HashSet<StorageByMachine>();
2018-08-05 23:11:15 +01:00
}
2018-08-06 21:07:07 +01:00
public int Id { get; set; }
public int CompanyId { get; set; }
public string Name { get; set; }
public MachineType Type { get; set; }
public DateTime? Introduced { get; set; }
public int? FamilyId { get; set; }
public string Model { get; set; }
2018-08-05 23:11:15 +01:00
2018-08-06 23:33:39 +01:00
public virtual Company Company { get; set; }
public virtual MachineFamily Family { get; set; }
public virtual ICollection<GpusByMachine> Gpus { get; set; }
public virtual ICollection<MemoryByMachine> Memory { get; set; }
public virtual ICollection<ProcessorsByMachine> Processors { get; set; }
public virtual ICollection<SoundByMachine> Sound { get; set; }
public virtual ICollection<StorageByMachine> Storage { get; set; }
2018-08-05 23:11:15 +01:00
}
}