using System.ComponentModel.DataAnnotations; using SchoolDataModels.Models; namespace SchoolDatabaseImplement.Models { public class StudentByDiscipline : StudentByDisciplineModel { [Required] public Student? Student { get; private set; } [Required] public Discipline? Discipline { get; private set; } [Required] public List? Accounts { get; private set; } } }