SUBD_Labs/BeautySalonDatabaseImplement/Models/MasterService.cs

18 lines
481 B
C#

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();
}
}