using System.ComponentModel.DataAnnotations; namespace Entities { public class GroupEntity { [Key] public long Id { get; set; } public int Num { get; set; } public int year { get; set; } public string sector { get; set; } public ICollection Users { get; set; } = new List(); public ICollection GroupVocabularyList { get; set; } = new List(); public string toString() { return "Id: " + Id + " Num: " + Num + " year: " + year + " sector: " + sector; } } }