using System.ComponentModel.DataAnnotations; using UniversityDataModels.Models; namespace UniversityDatabaseImplement.Models { public class ClassByPurchase : ClassByPurchaseModel { [Required] public Class? Class { get; private set; } [Required] public Purchase? Purchase { get; private set; } [Required] public List? Payments { get; private set; } } }