using System.ComponentModel.DataAnnotations; namespace BeautySalonDatabaseImplement.Models { public class MasterService { public int Id { get; set; } [Required] public int MasterId { get; set; } [Required] public int ServiceId { get; set; } [Required] public int Count { get; set; } public virtual Service Service { get; set; } = new(); public virtual Master Master { get; set; } = new(); } }