namespace Model; public class DataSource { public int Id { get; set; } public string Type { get; set; } public string Model { get; set; } public float Precision { get; set; } public ICollection Activities { get; set; } = new List(); public ICollection Athletes { get; set; } public DataSource(int id, string type, string model, float precision, ICollection athletes, ICollection? activities) { Id = id; Type = type; Model = model; Precision = precision; Athletes = athletes; Activities = activities; } public DataSource(string type, string model, float precision, ICollection athletes, ICollection? activities) : this(0, type, model, precision, athletes, activities) {} public override string ToString() { return $"DataSource #{Id}: {Type} {Model} with a precision of {Precision}"; } }