Пример #1
0
 public void CopyFrom(MachineryType type)
 {
     Id      = type.Id;
     Name    = type.Name;
     AreasId = type.Areas.Select(x => x.Id).ToList();
 }
Пример #2
0
 public Machinery()
 {
     Type = new MachineryType();
 }
Пример #3
0
 public Machinery(string name, MachineryType type)
 {
     Name = name;
     Type = type;
 }
Пример #4
0
 public virtual Machinery SetType(MachineryType type)
 {
     Type = type;
     return(this);
 }
Пример #5
0
 private bool CompareAreas(Machinery machine, MachineryType anyType)
 => anyType.Areas.Any(x => machine.Type.Areas.Any(z => x.Id == z.Id));