public Student(long id, string name, EntityGroupShort _entityGroupShort) // Конструктор, для считывания данных из базы { Id = id; Name = name; entityGroupShort = _entityGroupShort; //entityGroupShort = _entityGroupShort ?? throw new System.ArgumentNullException(nameof(_entityGroupShort)); }
public Student(string name, string numberGroup, long idGroup) { Name = name; entityGroupShort = new EntityGroupShort(idGroup, numberGroup); }